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)

xtech 04-20-2015 12:44 AM

Re: X-Cart - reBOOT - Responsive Template
 
when I put this for ($i = 24; 576 >= $i; $i = $i + 24) {
$perPageValues[] = $i;
}
it is displaying 24,48,72 and 96 only.Have there any upper limit set to 96?
If we display from 24 to 576 then will it create any issue?

Thanks,
xtech

PhilJ 04-20-2015 01:00 AM

Re: X-Cart - reBOOT - Responsive Template
 
Well, if you have people viewing that many products at once, a) it may lock up their browser (especially if on a mobile device) b) it may slow your store right down.

xtech 04-20-2015 01:13 AM

Re: X-Cart - reBOOT - Responsive Template
 
Thank you for your logic.So what is best?

I have again revert back to

for ($i = 24; 96 >= $i; $i = $i + 24) {
$perPageValues[] = $i;
}

Is it ok now?
Thanks,
xtech

PhilJ 04-20-2015 01:28 AM

Re: X-Cart - reBOOT - Responsive Template
 
Yes, although even 96 per page seems a lot to me...

xtech 04-20-2015 02:15 AM

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

Originally Posted by PhilJ
Yes, although even 96 per page seems a lot to me...


What is best practice?

PhilJ 04-20-2015 03:45 AM

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

What is best practice?
Personally, I'd limit to around 50 per page max. Any further questions on this matter, please take to a ticket, thanks.

elmirage001 04-28-2015 12:20 PM

Re: X-Cart - reBOOT - Responsive Template
 
Untill Phil posts...

In x-cart v4.6.6 it looks like the security update affected 2 reBOOT files which will have to be manually patched.

\skin\reboot\modules\Customer_Reviews\vote_reviews .tpl
\skin\reboot\customer\main\address_box.tpl

Compare the original x-cart version vs the security version to see what changes took place and then manually patch the reBOOT version of the files.

Use a file comparison tool like Beyond Compare http://www.scootersoftware.com/

PhilJ 04-29-2015 04:05 AM

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

In x-cart v4.6.6 it looks like the security update affected 2 reBOOT files which will have to be manually patched.
I have the patched files available for reBOOT 3.41 / 3.50. So if anyone wants them, PM me and I'll send you details.

In addition, reBOOT will be updated for v4.7.2 shortly.

elmirage001 04-29-2015 05:44 AM

Re: X-Cart - reBOOT - Responsive Template
 
Hi Phil, Thank you very much for sending the file and also for adding the additional reBOOT file that needed the 'escape' !

Very much appreciated!!

Paul

PhilJ 04-29-2015 07:02 AM

Re: X-Cart - reBOOT - Responsive Template
 
reBOOT v3.51 released (X-Cart v4.7.2). Get in touch for updated files. Demo

Vacman 04-29-2015 09:22 AM

Re: X-Cart - reBOOT - Responsive Template
 
Phil, I have a question. I am noticing that if a customer adds something to their cart and goes to the checkout page where they are viewing the contents of their cart - the system is displaying the larger detailed images instead of the thumbnails. As some of these can be quite large, this isn't a good experience.

Not sure what file to look at. Can you point me in the right direction?

PhilJ 04-29-2015 09:26 AM

Re: X-Cart - reBOOT - Responsive Template
 
Hi Carl, the cart.php page template is skin/reboot/customer/main/cart.tpl

But first perhaps try regenerating your image cache in tools > maintenance.

Vacman 04-29-2015 07:48 PM

Re: X-Cart - reBOOT - Responsive Template
 
Ok - The Regen tool did not affect the size of the image(s) on the checkout page - will take a look at the code when I can (maybe tomorrow).

PhilJ 04-29-2015 09:36 PM

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

Ok - The Regen tool did not affect the size of the image(s) on the checkout page - will take a look at the code when I can (maybe tomorrow).

In skin/reboot/customer/main/cart.tpl you can replace...

Code:

{include file="product_thumbnail.tpl" productid=$product.productid product=$product.product tmbn_url=$product.tmbn_url}

With, eg...

Code:

{include file="product_thumbnail.tpl" productid=$product.productid product=$product.product tmbn_url=$product.tmbn_url image_x=$product.tmbn_x}

Freakmode 04-30-2015 11:01 AM

Re: X-Cart - reBOOT - Responsive Template
 
Couple of questions and we are nearly there.

1) Is it possible to change the load order when Reboot goes into Portrait Responsive? We would ideally like Refine Filters to load at the top of the screen if possible instead of below the products.

2) How easy is it to add Reboot style icons to XCMS in the sidebar so it blends in more. Or if its easier remove the icons altogether?

Thank you

buywink 04-30-2015 10:38 PM

Re: X-Cart - reBOOT - Responsive Template
 
Hi Phil,
X-Janrain Engage integration is not working with reboot.I have posted the issue with qtm and they told that-
++++++++++++++++++++++++++++++++++++++++++++++++++ +++++++++++++
The "You have to complete registration by filling necessary fields" issue arises because the facebooks's profile contains no necessary data for the cart's required fields
and redirect is performed to

http://www.mydomain.com/cart.php?mode=checkout&edit_profile=Y

as it supposed to be
But in your cart the profile form was not "expanded" (to fill in "missing" fields) in the default way because of the custom 3d-party skin
With the default skin it works as it should - registration form is displayed
Your custom skin contains no default IDs (elements names) which are used by the module and it is the reason of the not expanded form issue
but if you click on "New Customer Register Here" you can see the personal info filled in from the facebook's profile data

So, in general the module works and passes all necessary info from facebook's profile to your cart
To solve the issue with the not expanded registration form you can contact the skin authors regarding the issue and ask them to check/fix it

I.e. when the redirect from the login is performed to
http://www.mydomain.com/cart.php?mode=checkout&edit_profile=Y
the form should be expanded in the way as if you manually click on "New Customer Register Here"

++++++++++++++++++++++++++++++++++++++++++++++++++ +++++++++++++++
How to resolve the issue?Please let me know.

Thanks,
wink

PhilJ 05-01-2015 02:56 AM

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

1) Is it possible to change the load order when Reboot goes into Portrait Responsive? We would ideally like Refine Filters to load at the top of the screen if possible instead of below the products.

You can use the method I previously posted a while back here, although the code may be slightly different.

Quote:

2) How easy is it to add Reboot style icons to XCMS in the sidebar so it blends in more. Or if its easier remove the icons altogether?

Where the customer/menu_dialog.tpl box code is called in the menu template, you add an icon like this...

Code:

additional_class="fa fa-xxxxxx"
Eg.
Code:

{include file="customer/menu_dialog.tpl" title="Menu Title" content=$smarty.capture.menu additional_class="fa fa-star"}

List of icons is here.

Freakmode 05-01-2015 03:32 AM

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

Originally Posted by PhilJ
You can use the method I previously posted a while back here, although the code may be slightly different.


Thanks Phil

MY bad - works a treat

Freakmode 05-01-2015 05:22 AM

Re: X-Cart - reBOOT - Responsive Template
 
Can you add Instagram to the social sharing buttons under the Product image (not at the top)?

PhilJ 05-01-2015 07:14 AM

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

Can you add Instagram to the social sharing buttons under the Product image (not at the top)?
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

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

Freakmode 05-08-2015 07:27 AM

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

Here is mine with Lazy Load off - I'll have to hack some code to tuen it back on for another screen shot.

Just noticed I am getting a 404 for newsletterpopup.js - not sure why that is.

Freakmode 05-08-2015 10:55 AM

Re: X-Cart - reBOOT - Responsive Template
 
OK been live for a few hours now and its going very well. People seem to like the new layout.

I am trying to install the free "Device Detect" module so we can see what people are buying on.

If we install the version 2 the page shown is just white and the following php error is recorded in the log.

Code:

[08-May-2015 16:47:45] PHP Fatal error:  Cannot redeclare class Mobile_Detect in /home/wwwjoba/public_html/Mobile_Detect.php on line 29

Anyone got this working with 4.6.6 or any ideas where we are going wrong.

elmirage001 05-08-2015 06:34 PM

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

Originally Posted by Freakmode
OK been live for a few hours now and its going very well. People seem to like the new layout.

I am trying to install the free "Device Detect" module so we can see what people are buying on.

If we install the version 2 the page shown is just white and the following php error is recorded in the log.

Code:

[08-May-2015 16:47:45] PHP Fatal error:  Cannot redeclare class Mobile_Detect in /home/wwwjoba/public_html/Mobile_Detect.php on line 29

Anyone got this working with 4.6.6 or any ideas where we are going wrong.

I'm using Version 1 in my 4.6.6 live but have not tried v2 yet.

Freakmode 05-09-2015 11:03 AM

Re: X-Cart - reBOOT - Responsive Template
 
Yep V1 seems to work fine although I am now wondering where all of our mobile customers have gone.8O

How accurate is it?

PhilJ 05-10-2015 01:51 AM

Re: X-Cart - reBOOT - Responsive Template
 
I have tested and updated the Device Detect addon for v4.7.2 ... Download here.

Freakmode 05-13-2015 12:36 AM

Re: X-Cart - reBOOT - Responsive Template
 
I have about 4 images in a row 150x150px on a static page. If I add the class=img-responsive they are then shown 1 per line. Is there a way to show them correctly so I can get at least 2 on a line for mobiles?

PhilJ 05-13-2015 12:53 AM

Re: X-Cart - reBOOT - Responsive Template
 
David, you should know by now...

Freakmode 05-13-2015 01:14 AM

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

Originally Posted by PhilJ
David, you should know by now...


Sorry over my head Phil - am I being a Dufus here?

PhilJ 05-13-2015 01:49 AM

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

<div class="row">
<div class="col-xs-12 col-sm-6 col-md-3 text-center"><a href="#link"><img src="{$AltImagesDir}/image.jpg" alt="Whatever"><br>Text</a></div>
<div class="col-xs-12 col-sm-6 col-md-3 text-center"><a href="#link"><img src="{$AltImagesDir}/image.jpg" alt="Whatever"><br>Text</a></div>
<div class="col-xs-12 col-sm-6 col-md-3 text-center"><a href="#link"><img src="{$AltImagesDir}/image.jpg" alt="Whatever"><br>Text</a></div>
<div class="col-xs-12 col-sm-6 col-md-3 text-center"><a href="#link"><img src="{$AltImagesDir}/image.jpg" alt="Whatever"><br>Text</a></div>
</div>


Freakmode 05-13-2015 02:10 AM

Re: X-Cart - reBOOT - Responsive Template
 
Doooh - I am a Dufus

Thanks again


All times are GMT -8. The time now is 04:56 AM.

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