jr.villaron Posted May 3, 2023 Share Posted May 3, 2023 Hi everyone, As usual I am unable to achieve what I thought it would have been an easy task in Prestashop. I would like to display customisation fields for every product in the cart detailed lines. I attach a screenshot to make myself better understood. Here is the code that i have taken from product.tpl {if $product.is_customizable && count($product.customizations.fields)} {block name='product_customization'} {include file="catalog/_partials/product-customization.tpl" customizations=$product.customizations} {/block} {/if} But when I paste it in cart-detailed.tpl nothing happens... Would it be possible to display the field somehow? Thank you in advance! Link to comment Share on other sites More sharing options...
JBW Posted May 3, 2023 Share Posted May 3, 2023 You can't simple use the code/template from product to add customizations in the shopping cart, this would require addtional developments. What is standard in classic theme is it least the option to display the customization Link to comment Share on other sites More sharing options...
jr.villaron Posted May 3, 2023 Author Share Posted May 3, 2023 Hi, I have seen that this module seems to offer the fonctionnalities that I am looking for https://addons.prestashop.com/en/combinaisons-customization/49650-customization-directly-into-cart.html doesn't it ? Could you tell me if the saved messages on the cart are stored in the database exactly as the fields on the product page? Thank you! Link to comment Share on other sites More sharing options...
JBW Posted May 3, 2023 Share Posted May 3, 2023 This is my module It enables the customer to directly add customization into the cart from the product page without the extra step of saving the customization first. There is no change/functionality inside the shopping cart itself Link to comment Share on other sites More sharing options...
jr.villaron Posted May 4, 2023 Author Share Posted May 4, 2023 Hi, I see that customisation does not need to be saved but does the module let filling the fields directly from the cart page? Link to comment Share on other sites More sharing options...
jr.villaron Posted May 4, 2023 Author Share Posted May 4, 2023 Hi again, the final decision that I have taken is to call the .product-customization element and open it on a modal. The problem that I see is that I still have the "Save" button and that when I save it redirects to the product page. Do you think that by using your module we could save the field on the fancybox modal avoiding that unpleasant redirection ? Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now