X-Cart: shopping cart software

X-Cart forums (https://forum.x-cart.com/index.php)
-   Third Party Add-Ons for X-Cart 4 (https://forum.x-cart.com/forumdisplay.php?f=45)
-   -   X-Cart - reBOOT - Responsive Template (https://forum.x-cart.com/showthread.php?t=66570)

Freakmode 05-01-2015 09:36 PM

Re: X-Cart - reBOOT - Responsive Template
 
Quote:

Originally Posted by PhilJ
I don't think it's possible to share to Instagram in that way, ie. it's not supported by their API. Details (see info at bottom of page).

If you want to add Pinterest sharing, you can uncomment some code in skin/reboot/custom/product_sharing_buttons.tpl


Sorry I meant to say Pinterest not Instagram. Just spotted the commented out code.

Thanks again

Bluemonk 05-04-2015 07:27 AM

Re: X-Cart - reBOOT - Responsive Template
 
Hi Phil, I would like to remove some of the sort options in the category page. I would just like to display sort by price and sort by sales.

Also, I 'd like to change the word "sales" to "popularity".

Could you please let me know how to do this.

Using 4.7.1

Thank you

Freakmode 05-07-2015 02:03 AM

Re: X-Cart - reBOOT - Responsive Template
 
Is Phil on holiday this week?

PhilJ 05-07-2015 02:15 AM

Re: X-Cart - reBOOT - Responsive Template
 
I'm around, but am very busy working on reBOOT v4 :)

I replied your ticket.

PhilJ 05-07-2015 02:27 AM

Re: X-Cart - reBOOT - Responsive Template
 
Quote:

Hi Phil, I would like to remove some of the sort options in the category page. I would just like to display sort by price and sort by sales.

skin/reboot/customer/search_sort_by.tpl

Replace...

Code:

    <option{if $smarty.get.sort eq $name &&  $smarty.get.sort_direction eq 0} selected="selected"{/if}  value="{$http_location}/{$cur_url}sort={$name}&sort_direction=0"  class="sort_asc">{$field} &uarr;</option>{* Ascending *}
    <option{if $smarty.get.sort eq $name &&  $smarty.get.sort_direction eq 1} selected="selected"{/if}  value="{$http_location}/{$cur_url}sort={$name}&sort_direction=1"  class="sort_desc">{$field} &darr;</option>{* Descending *}


With...

Code:

{if $field ne "Default" && $field ne "Product"}
    <option{if $smarty.get.sort eq $name && $smarty.get.sort_direction eq 0} selected="selected"{/if} value="{$http_location}/{$cur_url}sort={$name}&sort_direction=0" class="sort_asc">{$field} &uarr;</option>{* Ascending *}
    <option{if $smarty.get.sort eq $name && $smarty.get.sort_direction eq 1} selected="selected"{/if} value="{$http_location}/{$cur_url}sort={$name}&sort_direction=1" class="sort_desc">{$field} &darr;</option>{* Descending *}
{/if}


Quote:

Also, I 'd like to change the word "sales" to "popularity".

/admin/languages.php?language=en&topic=&filter=lbl_sales

Freakmode 05-07-2015 05:53 AM

Re: X-Cart - reBOOT - Responsive Template
 
Is it possible to turn off the lazy loading of product images?
Mine seems to show the spinning for a little longer than they should.

Freakmode 05-07-2015 05:54 AM

Re: X-Cart - reBOOT - Responsive Template
 
Quote:

Originally Posted by PhilJ
I'm around, but am very busy working on reBOOT v4 :)

I replied your ticket.


No rush on V4 still trying to master V3:D

PhilJ 05-07-2015 06:03 AM

Re: X-Cart - reBOOT - Responsive Template
 
Quote:

Is it possible to turn off the lazy loading of product images?
Not advisable, but if you want to, skin/reboot/product_thumbnail.tpl

Replace...

Code:

<img itemprop="image" class="lazy"
{if $id ne ''} id="{$id}"{/if}
{if !$notlazy} src="{$AltImagesDir}/spacer.gif"{if $image_x ne 0} width="{$image_x}"{/if}{if $image_y ne 0} height="{$image_y}"{/if} data-src="{else}src="{/if}

With...
Code:

<img itemprop="image"
{if $id ne ''} id="{$id}"{/if}
{if $image_x ne 0} width="{$image_x}" {/if}{if $image_y ne 0} height="{$image_y}" {/if}src="

There'll be lazy loading improvements in v4.

Freakmode 05-07-2015 11:22 PM

Re: X-Cart - reBOOT - Responsive Template
 
Wow -cheers Phil
What a difference, it is now so quick to load.


Quote:

Originally Posted by PhilJ
Not advisable, but if you want to, skin/reboot/product_thumbnail.tpl

Replace...

Code:

<img itemprop="image" class="lazy"
{if $id ne ''} id="{$id}"{/if}
{if !$notlazy} src="{$AltImagesDir}/spacer.gif"{if $image_x ne 0} width="{$image_x}"{/if}{if $image_y ne 0} height="{$image_y}"{/if} data-src="{else}src="{/if}

With...
Code:

<img itemprop="image"
{if $id ne ''} id="{$id}"{/if}
{if $image_x ne 0} width="{$image_x}" {/if}{if $image_y ne 0} height="{$image_y}" {/if}src="

There'll be lazy loading improvements in v4.


elmirage001 05-08-2015 07:03 AM

Re: X-Cart - reBOOT - Responsive Template
 
1 Attachment(s)
Quote:

Originally Posted by Freakmode
Wow -cheers Phil
What a difference, it is now so quick to load.

Hi Freakmode, you might want to test to make sure your page load results have not been negatively affected.

In Google Chrome bring up your page and then right click to get to the Inspect Element choice. Click on Inspect Element then click on Network, and then click on the checkbox to Disable Cache.

Now click on the Google Chrome Reload this page icon and check your results. You should test with Lazy Load Off and then with Lazy Load On. I'm attaching my results just in case you've not used Inspect Element before. Please let us know what you get with lazy load on and off. Thank you!

Attachment 4132

Paul


All times are GMT -8. The time now is 02:46 AM.

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