X-Cart: shopping cart software

X-Cart forums (https://forum.x-cart.com/index.php)
-   Third Party Add-Ons for X-Cart 5 (https://forum.x-cart.com/forumdisplay.php?f=64)
-   -   "Shop By Brand" module for X-Cart 5 (https://forum.x-cart.com/showthread.php?t=69204)

xplorer 05-19-2014 11:49 AM

"Shop By Brand" module for X-Cart 5
 
Hello!

I'm happy to announce one more module for X-Cart 5 - Shop By Brand.

http://www.x-cart.com/sites/default/files/addons/image/Shop_By_Brand_184px.png

In a few words this module behaves like the "manufacturers" feature in X-Cart 4 with the one major change: instead of a custom product field this module uses a global product attribute to store the brand name.

The use of a product attribute:

a) allows you to enable the "brands" feature after you added the "brand" product attribute and defined brands for your products (the module will import existing brands)

b) makes it possible to filter by brand in the layered navigation offered by Product Filter module

Feel free to ask me should you have any questions or suggestions for the module.

Thanks!

RichieRich 05-21-2014 01:45 AM

Re: Shop By Brand module for X-Cart 5
 
It looks good, does the brand logo appear on the product page also?

xplorer 05-21-2014 08:44 PM

Re: Shop By Brand module for X-Cart 5
 
Quote:

Originally Posted by RichieRich
It looks good, does the brand logo appear on the product page also?


Thanks! Yes, the logo appears above the price on both the product page and the quick-look popup.

xplorer 08-07-2014 12:56 AM

Re: Shop By Brand module for X-Cart 5
 
The new 5.1.3 version of Shop By Brand module is available for downloading from X-Cart Marketplace!

Now the module:
- offers the ability to manually sort brands and choose the order in which brands should be shown in the storefront (order by name / by the number of products / as defined by the store owner)
- comes with the built-in Russian translation
- includes a few bug-fixes

JannieB 11-07-2014 01:52 AM

Re: Shop By Brand module for X-Cart 5
 
I am using this module - which is great, but I have one very simple thing I am trying to do and can't work out how to do it!

I want to extract just the brand name to display on the product page. The widget returns the band name as a heading with a link .... how do I just get the brand name for the current product?

Thanks,

Jan

xplorer 11-07-2014 04:29 AM

Re: Shop By Brand module for X-Cart 5
 
Hello Jan,

Thank you for your kind words!

I will be glad to help you.

Please could you explain what you do and what you want to achieve? Have you added a new template or widget class that displays the brand? Or do you replace the template via a custom skin?

Thanks!

JannieB 11-07-2014 05:56 AM

Re: Shop By Brand module for X-Cart 5
 
Hi,
I am using a custom skin module ... I have an amended version of the prodyct/details/parts/common.product.title.tpl with this in it:

Code:

<widget class="XLite\Module\QSL\ShopByBrand\View\Product\Details\Brand" product="{product}" />
<h1 class="fn title">{product.name:h}</h1>


However this pulls in the brand name as this sort of thing

Code:

<h1><a href="?target=brand&brand_id=18">Gubi</a></h1>


What I want is just the name of the brand without the '<h1>' tag and without the link.

Ideally I need is as a widget as I need to use it in a few places on the product page.

It's such a simple thing, but I can't work out how to do it!

Thanks,

Jan

JannieB 11-07-2014 08:37 AM

Re: Shop By Brand module for X-Cart 5
 
I also have another question about this module and would appreciate some help ..
... I have posted it in the Xcart5 forum here

http://forum.x-cart.com/showthread.php?p=379554

I would really appreciate some help ..... working with this version of x-cart is proving to be very frustrating ...

xplorer 11-10-2014 03:46 AM

Re: Shop By Brand module for X-Cart 5
 
Hi Jan,

Thanks for the clarifications!

Quote:

Originally Posted by JannieB
I have an amended version of the prodyct/details/parts/common.product.title.tpl


The "common.product.title.tpl" template renders the product name, not the product's brand.

The "product/details/parts/brand.tpl" is the template that injects the brand icon to the product page (but not renders it!).


Quote:

Originally Posted by JannieB
Code:

<h1 class="fn title">{product.name:h}</h1>


The same goes there: "product.name" is the product name, not the brand name :-)


Quote:

Originally Posted by JannieB
Code:

<h1><a href="?target=brand&brand_id=18">Gubi</a></h1>


The link tag is added to the brand in this template file:
modules/QSL/ShopByBrand/brand/icon.tpl

So, if you want to remove the link, you should "override" this template file in your custom skin, not the one that you mentioned above.


Quote:

Originally Posted by JannieB
working with this version of x-cart is proving to be very frustrating


This is just the first impression that will go away once you get a bit more familiar with the code of X-Cart 5. Just don't give up! :-)

JannieB 11-10-2014 04:48 AM

Re: Shop By Brand module for X-Cart 5
 
Thanks that's a lot clearer, but is

modules/QSL/ShopByBrand/brand/icon.tpl

used elsewhere (ie where I might need the link?), such as on the all_brands page, or is that a different template?


All times are GMT -8. The time now is 03:07 AM.

Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.