Digital experiences for all disciplines
New Landing › How can we help? › Atelier › Shop home page setting breaking links in areas of the website
New Landing › How can we help? › Atelier › Shop home page setting breaking links in areas of the website
- This topic has 50 replies, 6 voices, and was last updated 9 years by Rui Guerreiro – SUPPORT.
-
Posted in: Atelier
-
August 25, 2015 at 4:58 pm #207375
I thought it might be useful to post some screen shots of whats wrong with the shop page layout.
its really unstable and I need a solution asap please.Many thanks,
Pete
Attachments:
You must be logged in to view attached files.August 26, 2015 at 12:38 pm #207652Hi Pete,
Everything is looking correct for me, as specified by your screenshot.
Did you resolve your issue?
-David.
August 26, 2015 at 2:20 pm #207707Take a look again – The shop base wasn’t sent.
Its all looks wrong now.
Please help.
August 26, 2015 at 3:14 pm #207752Hi Pete,
Setting the shop base in WooCommerce will automatically pull in your shop products meaning you cannot use the page builder within the page.
If you do not set the page as the WC base, you can use the page builder.
Thanks,
David.August 27, 2015 at 10:28 am #208043Hi Dave,
Sorry – feel a little like i’m going round in circles here.
If i use the page builder and don’t select the page as the shop base in woocommerce then the links don’t work.there are 3/4 links which get broken in your theme.
1. The home page (show all products)
2. the Back to shop link on an empty cart (this was actually fixed by a change to the function.php file)
3. the continue shopping link in the cart when you have a product in it (the link on the banner works but the link below go to checkout does not)I have taken the woocommcere base setting page out so you can see the issue. you seem to be able to get this working in the demos so i can’t see why i can’t get it to work on this site?
Check back through old posts for screen shots and responses.
Thanks for looking – hopefully we can get to the solution!
Best,
PeteAugust 27, 2015 at 10:30 am #208045Links to screen shots to save you some time.
http://www.swiftideas.com/wp-content/uploads/2015/08/continue-shopping-link.jpg
http://www.swiftideas.com/wp-content/uploads/2015/08/home-page-link.jpgCheers,
Pete
August 27, 2015 at 11:40 pm #208278So I’m pretty sure this is a bug in your Atelier base code, given that a lot of the pages peter just linked to in your own demos are also broken.
Luckily I think it’s also a quick fix.
The reason that the solutions you’ve suggested aren’t working, is because the code in Atelier, ignores the custom redirect that you and the Woocommerce site have suggested, by leaving out a key line of code.
in woocommere/cart/cart.php, line 155 the continue shopping link is created with the following line:
href=”<?php echo get_permalink( wc_get_page_id( ‘shop’ ) ); ?>”>
when I think it should be created with the same code that the base woocommerce plugin uses, which allows for the override:
href=”<?php echo apply_filters( ‘woocommerce_continue_shopping_redirect’, get_permalink( wc_get_page_id( ‘shop’ ) ) ); ?>”>
I’m assuming that the same goes wherever else that code is duplicated in the theme.
Also, as woocommerce recommend a similar solution to the return to shop link for an empty cart, I’d guess that link should be created the same wayAugust 28, 2015 at 2:14 am #208292Thanks for the heads up – changed for the next update.
– Ed
September 1, 2015 at 10:13 am #209066Hi Ed,
Thanks for update – this seemed to have fixed most of the links.
Though after testing I can see that one of the link areas still does not work correctly.
(See attached image)page ref: http://preview.mccaul.com
‘featured products’ moduleCould you take a look at this for me please and advise on the best way to get it working.
Many thanks,
PeteAttachments:
You must be logged in to view attached files.September 2, 2015 at 11:40 am #209639Hi Pete,
Glad this update resolved your query, thanks for the feedback also.
I’ll pass this back to Ed for the next update and fix.
Thanks,
David.September 3, 2015 at 1:19 am #209958Hi there,
That pulls the link for the shop page, set in WooCommerce > Settings > Display – so please set that.
– Ed
September 3, 2015 at 10:32 am #210057Hi Ed,
Ive tried this and this is really where the issues first begin on this thread.
This doesn’t work. Take a look, the page is messed up. (I have left the woocommerce shop home page enabled so you can see. the link in question now works but the page doesn’t.
http://preview.mccaul.com/our-collection/
You can see more on this in past comments..
Any ideas for a work around / Fix?
Cheers,
September 3, 2015 at 1:17 pm #210137Hmm that is strange. Nothing wrong with the way the theme is getting the link for that button from what I can see. I can only assume this is some sort of plugin conflict. Can you try disabling all apart from Swift Framework + WooCommerce?
– Ed
September 3, 2015 at 1:53 pm #210153This reply has been marked as private.September 3, 2015 at 5:15 pm #210204Just needed to resave your permalinks, there must have been an issue with them – working now.
– Ed
-
Posted in: Atelier
You must be logged in and have valid license to reply to this topic.