Howdy!
I am trying to build an alternative display page for a product and cant seem to get it working properly. My goal is to setup the product so it mirrors the default display except it wont allow you to purchase more than one at a time, if you have already purchased one it will tell you that you already purchased it and not allow you to purchase again, and lastly if you are not logged into an account it will tell you that you must be signed into an account before you can purchase. The goal is to link this item to a specific user account and allow only one purchase per account. Currently i have this functionality working inside the "PROD" page. However it feels really hacky to have if statements on PROD page looking for one specific item.
In my endeavours on creating an alternative display page i have found it just breaks things despite copying the PROD page exactly. Things like the products images stop being populated, the add to cart button when clicked says "Invalid token", and the Description / Specifications / Reviews tabs (normally located below the product images) is inside the add to cart Div. If anyone has any experience with working with these Alternate Display Page any tips would be appreciated. Also i must note that i don't have the page anymore because i ended up getting frustrated and just doing the 'hacky' if statement inside the PROD page. Thanks again!
I am trying to build an alternative display page for a product and cant seem to get it working properly. My goal is to setup the product so it mirrors the default display except it wont allow you to purchase more than one at a time, if you have already purchased one it will tell you that you already purchased it and not allow you to purchase again, and lastly if you are not logged into an account it will tell you that you must be signed into an account before you can purchase. The goal is to link this item to a specific user account and allow only one purchase per account. Currently i have this functionality working inside the "PROD" page. However it feels really hacky to have if statements on PROD page looking for one specific item.
In my endeavours on creating an alternative display page i have found it just breaks things despite copying the PROD page exactly. Things like the products images stop being populated, the add to cart button when clicked says "Invalid token", and the Description / Specifications / Reviews tabs (normally located below the product images) is inside the add to cart Div. If anyone has any experience with working with these Alternate Display Page any tips would be appreciated. Also i must note that i don't have the page anymore because i ended up getting frustrated and just doing the 'hacky' if statement inside the PROD page. Thanks again!
Comment