SophieW Posted March 25 Share Posted March 25 Hi there, I am wanting to add specific external URLs to each 'Add to cart' button per product. Link to comment
Solution creedon Posted March 25 Solution Share Posted March 25 Please see the following. Let us know how it goes. SophieW 1 Find my contributions useful? Please like, upvote, mark my answer as the best ( solution ), and see my profile. Thanks for your support! I am a Squarespace ( and other technological things ) consultant open for new projects. Link to comment
SophieW Posted March 25 Author Share Posted March 25 Amazing thank you! By chance do you know how to remove the quantity box from the product page? And is there any way you can open the page in a new browser rather than taking the customer away from the website? Link to comment
creedon Posted March 25 Share Posted March 25 (edited) Set the Stock level to 1. This assumes you are not using the full (cart & checkout) SS e-commerce functionality. To open in a new window/tab use the targetAtttributeValue setting in my code. Edited March 25 by creedon Find my contributions useful? Please like, upvote, mark my answer as the best ( solution ), and see my profile. Thanks for your support! I am a Squarespace ( and other technological things ) consultant open for new projects. Link to comment
SophieW Posted March 25 Author Share Posted March 25 Great the quantity thing is done thank you. Any advice on the opening next page in a new browser? Link to comment
creedon Posted March 25 Share Posted March 25 Quote Any advice on the opening next page in a new browser? Please see my previous post. Find my contributions useful? Please like, upvote, mark my answer as the best ( solution ), and see my profile. Thanks for your support! I am a Squarespace ( and other technological things ) consultant open for new projects. Link to comment
sarahirvine11 Posted August 13 Share Posted August 13 Hi @creedon. Thank you for sharing this!! I've tried adding it to a 7.1 site (https://www.henaraskinco.com/shop) and can't seem to figure out why it won't work. Did i miss a step? Link to comment
creedon Posted August 13 Share Posted August 13 1 hour ago, sarahirvine11 said: I've tried adding it to a 7.1 site (https://www.henaraskinco.com/shop) and can't seem to figure out why it won't work. Did i miss a step? You installed it correctly and it works on one product I tested on < https://www.henaraskinco.com/shop/p/cleansing-creme-mf85l > and it worked a treat. Perhaps what is tripping you up is that my Store Product Detail Add to Cart Button Url Redirect code is design to work on product details pages (pdp) only. I noticed that you have turned on ATC buttons on the product list pages (plp). I do not know of any code that does redirects for ATC buttons on the plp pages. I haven't addressed this need in my code. plp pages don't provide access to the sku for products. That is a barrier to end user ease of use in my mind. There are potential solutions to this particular issue but they are not straight forward and have some downsides. Find my contributions useful? Please like, upvote, mark my answer as the best ( solution ), and see my profile. Thanks for your support! I am a Squarespace ( and other technological things ) consultant open for new projects. Link to comment
sarahirvine11 Posted August 14 Share Posted August 14 23 hours ago, creedon said: You installed it correctly and it works on one product I tested on < https://www.henaraskinco.com/shop/p/cleansing-creme-mf85l > and it worked a treat. Perhaps what is tripping you up is that my Store Product Detail Add to Cart Button Url Redirect code is design to work on product details pages (pdp) only. I noticed that you have turned on ATC buttons on the product list pages (plp). I do not know of any code that does redirects for ATC buttons on the plp pages. I haven't addressed this need in my code. plp pages don't provide access to the sku for products. That is a barrier to end user ease of use in my mind. There are potential solutions to this particular issue but they are not straight forward and have some downsides. Thank you so much @creedon! I see it now. Will update so no option for ATC on plp page!! Link to comment
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment