Skip to main content

Adding weight to products in main page

Comments

8 comments

  • underr

    Hi,

    How do you need to display weight  - only for product or for product and each options too?

    0
  • underr

    I have an unpublished extension that does the next:

    0
  • Hassan Khashashneh

    I would like to show for each product so before the price the client would see the weight

    since options under the same product will have the same weight i think no need to show there too, but maybe good idea to display too for some products that can vary.

    Thanks

    0
  • underr

    demo link

    Something like that? 

    0
  • Hassan Khashashneh

    Yes absolutely yes!!

    0
  • underr

    Product Weight+

    0
  • Hassan Khashashneh

    okies thanks, i thought with a little bit of coding that would works, because i already did add it in the products pages

    0
  • underr

    You're welcome.

    It is easy if you want to display product weight on the product page only, but to show weight for each product on category or bestsellers page or on the "related products" on product page it requires a little bit more coding . Usually it needs to make changes in each related controller, but in the extension above i use OpenCart Event System to catch data between controllers and templates and inject data about weight, so changes make only in twig-templates.

    0

Please sign in to leave a comment.

Powered by Zendesk