Jump to content

Product pagination to direct back to summary page, not product page

Recommended Posts

Site URL: https://redgumproducts.squarespace.com/

Hello! I have a site in progress (password is 123456) that requires 4 different product paginations. Paginations required as follows..

REDGUM LOG SPLITTERS > 'specific product'

REDGUM CHIPPER SHREDDERS > 'specific product'

REDGUM LOG SPLITTER ACCESSORIES > 'specific product'

REDGUM CHIPPER ACCESSORIES > 'specific product'

In order to do this, I created 4 separate store pages (I thought it best to do it this way rather than sorting with categories.) My issue is that I have products set up as summary blocks and I don't want the pagination to go back to the 'products' page. I want the pagination to go back to the unique 'summary' page. 

I found this code snippet which works perfectly if you have one store page.....

<script>
  $(function(){
    $(".ProductItem-nav-breadcrumb-link:first-child").attr("href", "/log-splitters/");
});
</script>

I have tried using this code in the page header code injections (obviously changing it to relate to each specific page title) but it is not working out for me. 

Can this even be done? 

Any help most appreciated!!!!! Please and thank you 🙂

Link to comment
  • Replies 4
  • Views 259
  • Created
  • Last Reply

Top Posters In This Topic

On 8/10/2022 at 3:22 PM, earthwindflowermoon said:

Hi Tuan, thank you so much for your reply! I have tried entering this in different areas (advanced code injection settings, unique page headers, etc) but I can't get it to work. Should I be entering it in the advanced code injection header section only? Do I need to use this with the code snippet I already have? Thank you

Can you share link to a page? We can check easier

Email me if you have need any help (free, of course.). Answer within 24 hours. 
Or send to forum message

Contact Customer Care - Learn CSS - Buy me a coffee (thank you!)

Link to comment

Thanks Tuanphan.. See links below and let me know if you need any more information.

All products have now been set up as individual products on index pages.... (done so I could have the product image and then card info underneath it) - still have the same issue though.

All products on the 'LOG SPLITTERS' page: pagination should be directed back here > https://redgumproducts.squarespace.com/log-splitters 
(NOT HERE https://redgumproducts.squarespace.com/redgum-log-splitters)

All products on the 'CHIPPER SHREDDERS' page: pagination should be directed back here > https://redgumproducts.squarespace.com/chipper-shredders 
(NOT HERE https://redgumproducts.squarespace.com/redgum-chipper-shredders)

All products on the 'LOG SPLITTER ACCESSORIES' page: pagination should be directed back here > https://redgumproducts.squarespace.com/log-splitter-accessories (NOT HERE https://redgumproducts.squarespace.com/red-gum-log-splitter-accessories)

All products on the 'CHIPPER ACCESSORIES' page (within accessories folder): pagination should be directed back here > https://redgumproducts.squarespace.com/chipper-shredder-accessories (NOT HERE https://redgumproducts.squarespace.com/redgum-chipper-accessories)

Thank you for your attention on this!

 

 

Link to comment

Create an account or sign in to comment

You need to be a member in order to leave a comment

×
×
  • Create New...

Squarespace Webinars

Free online sessions where you’ll learn the basics and refine your Squarespace skills.

Hire a Designer

Stand out online with the help of an experienced designer or developer.