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 10-23-2014 09:59 AM

Re: X-Cart - reBOOT - Responsive Template
 
Hi Phil

How would I make Refine Filters load above the products for users of mobiles in portrait mode?

Currently it loads below it.

PhilJ 10-23-2014 11:25 AM

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

How would I make Refine Filters load above the products for users of mobiles in portrait mode?

ok, here's a way to do it (tested) ...

1) In skin/reboot/customer/bar.tpl

Replace...
Code:

{if $active_modules.Refine_Filters}
  {include file="modules/Refine_Filters/customer_filter.tpl"}
{/if}


With...
Code:

{if $active_modules.Refine_Filters}
<div id="rfx_sidebar"></div>
<div id="rfx">
  {include file="modules/Refine_Filters/customer_filter.tpl"}
</div>
{/if}


2) In skin/reboot/custom/home_2_cols_left.tpl (sidebar on left)

Replace...
Code:

<div class="col-md-9 col-md-push-3">
{include file="customer/content.tpl"}
</div>


With...
Code:

<div class="col-md-9 col-md-push-3" id="content_col">
<div id="rfx_content">
{include file="customer/content.tpl"}
</div>
</div>


OR, skin/reboot/custom/home_2_cols_right.tpl (sidebar on right)

Replace...
Code:

<div class="col-md-9">
{include file="customer/content.tpl"}
</div>


With...
Code:

<div class="col-md-9" id="content_col">
<div id="rfx_content">
{include file="customer/content.tpl"}
</div>
</div>


3) In skin/reboot/js/reboot.js

At the end, insert...
Code:

function ChangeOrientation(width){
    if (width <= 991) {
        $("#rfx").after($("#rfx_content"));
    }else{
        $("#rfx").after($("#rfx_sidebar"));
        $("#rfx_content").appendTo("#content_col");
    }
}
$(function () {
    var onLoadWidth = $(window).width();
    ChangeOrientation(onLoadWidth);
    $(window).resize(function () {
        var resizeWidth = $(window).width();
        ChangeOrientation(resizeWidth);
    });
});


Kary 10-25-2014 11:23 AM

Re: X-Cart - reBOOT - Responsive Template
 
I have purchased and really like the Reboot Template. For users that want a fast
easy way to make changes it is great. Phil is very responsive and helpful. As a new xcart owner and new to html, php etc I find this template invaluable. I will buy more from xcartmods one of the better web companies I have found.

designguru 10-27-2014 07:40 AM

Re: X-Cart - reBOOT - Responsive Template
 
Suggestion

It would be so much more powerful when the testimonials would have the option of showing an avatar. People respond and trust testimonials a lot more when they see the actual person.

Is there a way that there will be an addon to add this feature?

Maybe I'm not the only one that would like to see this as it's very standard in 2014 for most e-commerce stores.

PhilJ 10-27-2014 07:49 AM

Re: X-Cart - reBOOT - Responsive Template
 
Good idea. Gravatar images would be the simplest way. I'll look into it and report back.

designguru 10-27-2014 08:03 AM

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

Originally Posted by PhilJ
Good idea. Gravatar images would be the simplest way. I'll look into it and report back.


Great! It has become a basic feature more and more and helps to build trust.

PhilJ 10-27-2014 02:49 PM

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

It would be so much more powerful when the testimonials would have the option of showing an avatar. People respond and trust testimonials a lot more when they see the actual person.

ok, here's how...

1) Upload the attached file, function.gravatar.php, to include/templater/plugins

2) In skin/reboot/modules/Testimonials/testimonials.tpl

Replace...
Code:

    {$t.testimonial}
With...
Code:

    <img src="{gravatar email=$t.email rating='PG' size='80'}" alt="{$t.name}" style="float:left;margin:0 10px 10px 0">

    {$t.testimonial}

    <div class="clearing"></div>

Default icon size is 80 pixels. To adjust, edit size='80'.

To set your own default icon (for those who submit testimonials and have not registered a Gravitar icon), instead use...

Code:

    <img src="{gravatar email=$t.email rating='PG' size='80' default='http://www.yourstore.com/skin/reboot/modules/Testimonials/images/default_avatar.jpg'}" alt="{$t.name}" style="float:left;margin:0 10px 10px 0">

Then upload your default_avatar.jpg image to skin/reboot/modules/Testimonials/images/

3) In skin/reboot/modules/Testimonials/testimonial_add.tpl

After...
Code:

<input name="email" type="text" id="email" maxlength="255" class="testimonial_input" placeholder="Required" required>
Insert...
Code:

<span style="font-size:12px">{$lng.lbl_testimonial_gravitar}</span>

4) Apply SQL patch...

Code:

REPLACE INTO xcart_languages SET code='en', name='lbl_testimonial_gravitar', value='If you have a <a href=\"https://gravatar.com/site/signup/\" target=\"_blank\">Gravitar icon</a> associated with your email address, we will display it next to your testimonial.', topic='Labels';

5) Run a template cleanup.

Demo here. More info on the plugin here. More info on the icons here. Very useful and could be used elsewhere around your store :)

designguru 10-28-2014 07:42 AM

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

Originally Posted by PhilJ
ok, here's how...

Demo here. More info on the plugin here. More info on the icons here. Very useful and could be used elsewhere around your store :)




Guess it was a good idea =) Nice to see turn around that fast. I couldn't find {$t.testimonial}.
Could only find {$t.testimonial|sslash} (v2.6.4 as far as I remember)
The testimonials in the footer do still not show it though, maybe it would be another improvement when they show there too?

***

I was just told by xcartmods.co.uk that 'they're sick of people like me' and that I should go away and I could make as much noise as I want. :(

I have no idea what happened and am a bit shocked. Yesterday I brought up an idea how testimonials could be improved and today I was treated very badly and condenscending. I just tried to give some ideas to improve the mods of xcartmods.co.uk which I'm a fan of and didn't want to feel anyone offended by my ideas or thoughts nor put pressure that they need to come to life. I really like reboot and xcartmods.co.uk but am out of words. Unfortunately, I couldn't find out what the problem might be as I only got told to find out myself and a phrase 'I know exactly who you are. Goodnight!' and the chat was closed.

I hope that some of the ideas helped to build an even better product and helped some other people too. My apologies if I offended anyone by bringing up improvement ideas.

PhilJ 10-28-2014 09:55 AM

Re: X-Cart - reBOOT - Responsive Template
 
Just enforces what I said. Sorry, but I know when a person is out to cause trouble and I won't stand for it.

Freakmode 10-28-2014 09:56 AM

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

Originally Posted by designguru
I was just told by xcartmods.co.uk that 'they're sick of people like me' and that I should go away and I could make as much noise as I want. :(


Are you sure it was Phil, sounds a bit odd


All times are GMT -8. The time now is 10:36 AM.

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