| ||||||||||
![]() |
Shopping cart software Solutions for online shops and malls | |||||||||
![]() |
![]() |
|
X-Cart Home | ![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
Extend module's layout. | |||
![]() |
|
|
Thread Tools | Search this Thread |
#1
|
|||||||
|
|||||||
![]() I want to change some logic from product\details\stock\body.twig layout.
For that task, I decorate \XLite\View\Product\Details\Customer\Stock class and I override the getDefaultTemplate() method. PHP Code:
__________________
Soptareanu Alex |
|||||||
#2
|
|||||||||
|
|||||||||
![]() Quote:
You can make your module to be placed after QSL/Backorder in decoration chain as explained here: https://devs.x-cart.com/basics/making_one_module_depend_on_another_one_--_creating_a_menu_in_the_customer_area.html This way you will be in control of final version of the class.
__________________
Found a bug in X-Cart? Post it to our bug tracker! Know how to make X-Cart better? Suggest an idea! |
|||||||||
|
|
|||
X-Cart forums © 2001-2020
|