bilusunny Posted January 11, 2016 Share Posted January 11, 2016 Hello Everyone, Heres the thing, im into this online grocery store with around 3000+ products. Each product has a weight attribute. I would like to customer to click on add to cart, directly from the product list, when he clicks on a category or sub category. In order to acheive this i need to have the manufacturer name and the weight listed in the product name only. So when i enter theproduct name it looks like this, " Manufacturer Name Advanced Coconut Oil 300 ml" and i want this to be displayed in the product name. But currently prestashop only shows one line. I would like it to display the complete name. Could anyone help me on this please? The Ultimate solution, i am looking for is probably, have the brand name appear above the product name and the weight appear like a drop down below the product name. Please kindly look this and let me know if this is also possible in prestashop. Thank you so much. Link to comment Share on other sites More sharing options...
gabdara Posted January 11, 2016 Share Posted January 11, 2016 I'm not sure I fully understand your question. You want that customers select from a list of manufacturers and weight directly where the product is listed? Link to comment Share on other sites More sharing options...
bilusunny Posted January 12, 2016 Author Share Posted January 12, 2016 Sorry for the delay. Not exactly, let me try to explain it better. When you click on categories or sub categories, you get a list of products right. Right underneath each product image you have the name of the product right. I wanted the manufacture name to appear above the product name. Along with that, underneath that i need a small drop down which would allow the customer to choose the variation, in my case the weight of the product. I hope i made sense. Let me know if its possible, thank you. Link to comment Share on other sites More sharing options...
bilusunny Posted January 23, 2016 Author Share Posted January 23, 2016 Can anyone help me out on this please? Link to comment Share on other sites More sharing options...
premiumpresta Posted January 24, 2016 Share Posted January 24, 2016 You have to edit product-list.tpl from your theme. To show the manufacturer name, on the line above the product name add the following line: <div class="manufacturer">{$product.manufacturer_name|escape:'html':'UTF-8'}</div> The other one is more complicated and I can't write the code in here. I'll rapidly outline how I think this could be done: Override assignProductList() from CategoryController.php To each product from $this->cat_products add a key weight_variation using the function getAttributeCombinationsById() from Product class Into product-list.tpl write your select using product.weight_variation You could hire a developer to help you out with that. 1 Link to comment Share on other sites More sharing options...
bilusunny Posted February 10, 2016 Author Share Posted February 10, 2016 Thank you, it worked. Im marked this as solved 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