| ||||||||||
Shopping cart software Solutions for online shops and malls | ||||||||||
|
X-Cart Home | FAQ | Forum rules | Calendar | User manuals | Login |
ShopByBrand module change | |||
|
|
Thread Tools | Search this Thread |
#1
|
|||||||
|
|||||||
ShopByBrand module change
I have installed the ShopByBrand module and everything is working. But, i wanted to change the breadcrums to say "Manufactures" not "Brands."
I found the file that is controlling that to be classes>XLite>Module>QSL>ShopByBrand>View>Location >Node>Brands.php I have created a file under my custom module XLite\Module\<mymodule>\<mymoduledesign>\View And entered the follwoing code Code:
I can't get it to change on my custom module code. What should i be looking at? Thanks in advance.
__________________
V5.2.13 |
|||||||
#2
|
|||||||||
|
|||||||||
Re: ShopByBrand module change
Hello!
An easier way to replace "Brand" with "Manufacturer" might be the following one: go to the "Store setup -> Translations" section in the back-end, search for all multilingual labels having "brand" word in them, and replace the word with "manufacturer". Don't forget to create a backup copy of the site before editing the labels (as you may want to revert the change later). As for the custom module - I see the following possible problems: 1. Does the namespace match the directory structure? I'm asking because your namespace ends with "View", whilst the original one is "View\Location\Node". So, it may be that you put your Brand.php file inside the View/Location/Node directory, but left the namespace pointing to the View directory. 2. There is no need in updating the "PARAM_LINK" parameter (unless you change the value), because it happens when you call "parent::defineWidgetParams();" 3. The module will trigger a fatal error if you disable Shop By Brands in your store. To fix this you should tell X-Cart 5 that you alter the class only if Shop By Brands module is enabled: Code:
Also, without the @LC_Dependencies tag X-Cart 5 may put your code before the code added by Shop By Brands module, so that Shop By Brands overwrites yours "Manufactures" word with its "Brands" word. Does this help? |
|||||||||
|
#3
|
|||||||
|
|||||||
Re: ShopByBrand module change
Well, i tried to get Brands to Manufacturers in the "Store setup -> Translations" section but it didn't update the Brands in the breadcrumbs.
__________________
V5.2.13 |
|||||||
#4
|
|||||||
|
|||||||
Re: ShopByBrand module change
I appreciate your help.
here is the updated code. Code:
__________________
V5.2.13 |
|||||||
|
|||
X-Cart forums © 2001-2020
|