wjbeckett Posted September 18, 2014 Share Posted September 18, 2014 Hi all, I've been looking for a way to add the custom text to the existing product without creating an additional row beneath the product. What I mean by this is can I make the customized text be inserted into the product under the attributes? See attached screenshot. I've been trying to figure out how to do this but have been having a pretty hard time. Any help would be greatly appreciated! Regards, William. Link to comment Share on other sites More sharing options...
wjbeckett Posted September 24, 2014 Author Share Posted September 24, 2014 anyone have any idea how to achieve this? Just wanted to try and tidy up the shopping cart page. Link to comment Share on other sites More sharing options...
Naldinho Posted September 24, 2014 Share Posted September 24, 2014 (edited) How to change it by editing the core files I can't be too specific without digging into the code but I'd look at shopping-cart-product-line.tpl. It should be pretty easy but I have never tried it. If you're not comfortable editing core files I use Attribute Wizard Pro which allows for a text field to be an attribute so it is included in the original product row like all attributes. It is a great module with a lot of features but might be a little expensive (~$150) if you only want to use it for fixing text placement which really you should be able to fix by editing a few lines of a tpl The same developer offers a a different version that is less and likely does what you want so you could check on that but still paying for a module where you won't use 99% of the features seems wasteful. Edited September 24, 2014 by Naldinho (see edit history) Link to comment Share on other sites More sharing options...
wjbeckett Posted September 25, 2014 Author Share Posted September 25, 2014 Thanks for the reply Naldinho, I did see Attribute Wizard Pro however I can't really justify spending $150 to modify one product once. In my shop, I only have 4 products and only one of those 4 products uses a custom text field. I'm happy to edit the core files, and I've been digging around in there, I'm just finding it hard to figure out where to put what. I assume the value I need to move is $customizedDatas.$productId.$productAttributeId However, finding where I need to move it and then stopping it from adding the second row is where It all gets too hard for me. haha. I'd really appreciate if someone could point me in the right direction to try to achieve this. Regards, William. Link to comment Share on other sites More sharing options...
hpar Posted September 25, 2014 Share Posted September 25, 2014 Did you try to modify cart-product-line.tpl as Naldinho suggested ? Link to comment Share on other sites More sharing options...
wjbeckett Posted September 27, 2014 Author Share Posted September 27, 2014 Did you try to modify cart-product-line.tpl as Naldinho suggested ? Yeah I had a look at that page but couldn't figure out what I needed to put where. Obviously this is my first time playing with Prestashop so everything is new to me. I just kept getting lost in what pieces of code I needed to move where. Link to comment Share on other sites More sharing options...
wjbeckett Posted October 7, 2014 Author Share Posted October 7, 2014 is anyone able to shed any further light on this? 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