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 Ability Template v4.4.x (https://forum.x-cart.com/showthread.php?t=61776)

jmccunep 06-10-2012 09:44 AM

Ability Template v4.4.x custom 404 page
 
It appears Ability Template doesn't provide any built-in way to serve a 404 error page that uses the template. Am I missing something? Older versions of xcart used a static error page which readily integrated into the store's active template (but perhaps gave substandard 404 server responses?).

XCart 4.4.5 now serves the 404 error page (somehow) by way of a template found here skin/common_files/404/404_en.html which renders an error response page that doesn't even remotely resemble the Ability template. The 404 template file can be customized--though it doesn't look easy to customize it to match the rest of my site (and the source code is protected).

Can a 404 error page be enabled/created that meets 404 standards AND reproduces the header/footer/main menu of the Ability template pages of my site? How?

Thanks as always for help with this (brilliant) template.

XCart 4.4.5
Ability Template 1.051
www.twinoakshammocks.com is the live URL.
The development URL is not live on the web (is in a password protected folder).

JacksmithxD 06-12-2012 09:22 AM

Re: X-Cart Ability Template v4.4.x
 
As far as I'm aware it hasn't got anything to do with Ability as it's just a skin template, although I'm probably wrong.

I use CDSEO, which provide me a 404 Custom Error page. (If your not using CDSEO I advise you do as it's great)

bf2017 06-14-2012 01:25 PM

Re: X-Cart Ability Template v4.4.x
 
Quote:

Originally Posted by jkwalz
Is there a way to get the hover-over large images to pop-out on the homepage Featured Products display like they do in regular category lists? Right now all you get when you hover-over is that the thumbnail greys out and the magnifying glass appears.

Thx,

Jason


Did anyone find a solution to this?

seller 06-14-2012 03:11 PM

Re: X-Cart Ability Template v4.4.x
 
Hi, I am sorry if it was asked before, I looked some back and didn't see:
Is the template good for 4.5.0 as well?

Thanks

PhilJ 06-15-2012 05:58 AM

Re: X-Cart Ability Template v4.4.x
 
Quote:

Is the template good for 4.5.0 as well?
Yes, but you'll need to request updated files. Just get in touch with your order ID.

PhilJ 06-15-2012 06:57 AM

Re: X-Cart Ability Template v4.4.x
 
1 Attachment(s)
Quote:

Is there a way to get the hover-over large images to pop-out on the homepage Featured Products display like they do in regular category lists? Right now all you get when you hover-over is that the thumbnail greys out and the magnifying glass appears.

Thx,

Jason

Here's how...

1) Upload new file (attached below) skin/ability/custom/addons/image_preview/image_preview_featured.tpl

2) featured_products.php

After...

Code:

unset($old_search_data, $old_mode);

Insert...

Code:

# Ability Template
if ($config['Ability_Template']['abi_addon_image_preview'] == 'Y') {
if($products) {
foreach($products as $key=> $product)
$products[$key]["image_url"] = func_query_first_cell("SELECT image_path FROM $sql_tbl[images_D] WHERE id=".$product["productid"]);
}
}
# /Ability Template


3a) skin/ability/customer/main/featured.tpl

Replace... (this appears twice)

Code:

<a href="{$product.alt_url|default:$product.page_url|amp}" class="preview">

With...

Code:

<a href="{$product.alt_url|default:$product.page_url|amp}" class="preview"{if $config.Ability_Template.abi_addon_image_preview eq "Y" && (($main eq "catalog" && $cat eq "0") || $main eq "search") && $product.image_url} data-tooltip="sticky_{$product.productid}"{/if}>


3b) skin/ability/customer/main/featured.tpl

At the very bottom, insert...

Code:

{include file="custom/addons/image_preview/image_preview_featured.tpl"}

4) skin/ability/custom/custom_styles.tpl

Replace...

Code:

{if $config.Ability_Template.abi_addon_image_preview eq "Y" && (($main eq "catalog" && $cat ne "0") || $main eq "search")}.stickytooltip img { max-width: {/literal}{$config.Ability_Template.abi_addon_image_preview_max}{literal}px; }{/if}

With...

Code:

{if $config.Ability_Template.abi_addon_image_preview eq "Y" && (($main eq "catalog" && $cat eq "0") || $main eq "search")}.stickytooltip img { max-width: {/literal}{$config.Ability_Template.abi_addon_image_preview_max}{literal}px; }{/if}

5) skin/ability/custom/addons/addons_common.tpl

Replace...

Code:

{if $config.Ability_Template.abi_addon_image_preview eq "Y" && (($main eq "catalog" && $cat ne "0") || $main eq "search")}

With...

Code:

{if $config.Ability_Template.abi_addon_image_preview eq "Y" && (($main eq "catalog" && $cat eq "0") || $main eq "search")}

jazzmang 06-19-2012 06:27 AM

Re: X-Cart Ability Template v4.4.x
 
There is a minor bug that occur only when SEO clean URLs are enabled in x-cart AND you have Ability template's "Redirect old IE browsers to browser upgrade page" enabled.

This causes a 404 error when the browser tries to go to a category .e.g www.xyz.com/My-Category/ as it tries to redirect via JS to "upgrade.html", which in this case means it tries to go to www.xyz.com/My-Category/upgrade.html instead of www.xyz.com/upgrade.html.

All I did to fix this was to add / in in front of /upgrade.html in /skin/ability/custom/common.tpl on line 99 so it looks like this:

<script type="text/javascript"> window.location="/upgrade.html"; </script>

Please note I found this to be a problem when using Google Adwords as the resulting 404 error was causing the ads submitted with clean URLs to fail but would work fine without them be cause the path was valid as it was in the root URL.

It is an odd combination but it can be a huge pain in the lower back if you are using Adwords.

David-Allan 06-21-2012 02:20 AM

Re: X-Cart Ability Template v4.4.x
 
Hey guys,

I want to add the nivo slider to my homepage. I could probably just hard code it in but would like to add it as an option in the admin section like the other homepage promotion items. I have added the if statement in to promotions_common.tpl and the else if in to the welcome.tpl but can't for the life of me find where the admin code is kept.

I tried grepping for "image slider" & "Featured Image Box" in the root of my site recursively but couldn't find any references to them.

I'm confused. Could anyone give me a little nudge in the right direction please?

Thanks

D-A

cherie 06-21-2012 12:39 PM

Re: X-Cart Ability Template v4.4.x
 
That exact text may not be in the code but in a Language variable. Try finding the variable name in Languages then grep for that.

bf2017 06-21-2012 01:53 PM

Re: X-Cart Ability Template v4.4.x
 
Quote:

Originally Posted by David-Allan
Hey guys,

I want to add the nivo slider to my homepage. I could probably just hard code it in but would like to add it as an option in the admin section like the other homepage promotion items. I have added the if statement in to promotions_common.tpl and the else if in to the welcome.tpl but can't for the life of me find where the admin code is kept.

I tried grepping for "image slider" & "Featured Image Box" in the root of my site recursively but couldn't find any references to them.

I'm confused. Could anyone give me a little nudge in the right direction please?

Thanks

D-A




The variant options for the homepage promotions on the Ability Template options tab in admin is in your xcart_config table in your X-Cart database.

In PhpMyAdmin, go to your xcart_config table of your X-Cart database. Do a search of the name column for abi_home_promotions. Add "nivo_slider: Nivo Slider" (without the parenthesis) to the variants column.

Then your if/else statements should start with:

{if $config.Ability_Template.abi_home_promotions eq "nivo_slider"}

Hope this helps.

Brian

john99 06-21-2012 06:45 PM

Re: X-Cart Ability Template v4.4.x
 
Quote:

Originally Posted by PhilJ
Here's how...

1) Upload new file (attached below) skin/ability/custom/addons/image_preview/image_preview_featured.tpl

2) featured_products.php

After...

Code:

unset($old_search_data, $old_mode);

Insert...

Code:

# Ability Template
if ($config['Ability_Template']['abi_addon_image_preview'] == 'Y') {
if($products) {
foreach($products as $key=> $product)
$products[$key]["image_url"] = func_query_first_cell("SELECT image_path FROM $sql_tbl[images_D] WHERE id=".$product["productid"]);
}
}
# /Ability Template


3a) skin/ability/customer/main/featured.tpl

Replace... (this appears twice)

Code:

<a href="{$product.alt_url|default:$product.page_url|amp}" class="preview">

With...

Code:

<a href="{$product.alt_url|default:$product.page_url|amp}" class="preview"{if $config.Ability_Template.abi_addon_image_preview eq "Y" && (($main eq "catalog" && $cat eq "0") || $main eq "search") && $product.image_url} data-tooltip="sticky_{$product.productid}"{/if}>


3b) skin/ability/customer/main/featured.tpl

At the very bottom, insert...

Code:

{include file="custom/addons/image_preview/image_preview_featured.tpl"}

4) skin/ability/custom/custom_styles.tpl

Replace...

Code:

{if $config.Ability_Template.abi_addon_image_preview eq "Y" && (($main eq "catalog" && $cat ne "0") || $main eq "search")}.stickytooltip img { max-width: {/literal}{$config.Ability_Template.abi_addon_image_preview_max}{literal}px; }{/if}

With...

Code:

{if $config.Ability_Template.abi_addon_image_preview eq "Y" && (($main eq "catalog" && $cat eq "0") || $main eq "search")}.stickytooltip img { max-width: {/literal}{$config.Ability_Template.abi_addon_image_preview_max}{literal}px; }{/if}

5) skin/ability/custom/addons/addons_common.tpl

Replace...

Code:

{if $config.Ability_Template.abi_addon_image_preview eq "Y" && (($main eq "catalog" && $cat ne "0") || $main eq "search")}

With...

Code:

{if $config.Ability_Template.abi_addon_image_preview eq "Y" && (($main eq "catalog" && $cat eq "0") || $main eq "search")}


Try this but it did not work.

markdstephens 06-25-2012 06:01 AM

Re: X-Cart Ability Template v4.4.x
 
1 Attachment(s)
Hi Phil,

Loving the template!

Minor issue I noticed when adding mutiple detailed images. The thumbnails do not wrap under the main image. See attached.

Any ideas?


Thanks

v4.4.5
Ability

candc 06-25-2012 11:34 AM

Re: X-Cart Ability Template v4.4.x
 
What setting are you using for the detailed images module?

Have you tried setting the "number of detailed images that must fit etc" to three?

markdstephens 06-25-2012 01:58 PM

Re: X-Cart Ability Template v4.4.x
 
Ahhhh, no!

Set to 3 and works perfectly.

Thanks candc

klinetim 06-27-2012 06:26 AM

Re: X-Cart Ability Template v4.4.x
 
Hello,

The RSS feed for new products on our site has stopped working. I'm using the Ability template on a 4.4.5 store. After I ran the Generate Products in the Ability Template Options, then go to our homepage to check the feed, I get "Internet Explorer Cannot Display this Feed" in ie, or just a blank page in firefox. Anything I should check, or did I mess something up? Thanks!

SGS 06-27-2012 04:29 PM

Re: X-Cart Ability Template v4.4.x
 
PhilJ,

Please check support tickets, Have had one in for a week now. (ATUG6T2LB5)

Thanks

PhilJ 06-28-2012 05:57 AM

Re: X-Cart Ability Template v4.4.x
 
Quote:

Please check support tickets, Have had one in for a week now. (ATUG6T2LB5)

I am in the process of testing both templates with v4.5.1, so you'll receive your files after that.

PhilJ 06-28-2012 07:25 AM

Re: X-Cart Ability Template v4.4.x
 
The Ability template has updated and tested with v4.5.1 - DEMO

qwerty 06-28-2012 07:33 AM

Re: X-Cart Ability Template v4.4.x
 
hi phil i also sent you a ticket if you could have a look id u5nvvpy6rj
Thanks

PhilJ 06-28-2012 07:46 AM

Re: X-Cart Ability Template v4.4.x
 
Quote:

hi phil i also sent you a ticket if you could have a look id u5nvvpy6rj
ok, that's been sorted.

john99 06-28-2012 11:05 PM

Re: X-Cart Ability Template v4.4.x
 
Quote:

Originally Posted by PhilJ
Here's how...

1) Upload new file (attached below) skin/ability/custom/addons/image_preview/image_preview_featured.tpl

...[/code]


It is working now for the featured products so I try to do the same thing with Special offer on the home page. So I create the file

/ability/custom/addons/image_preview/image_preview_bestseller.tpl

by changing $f_products to $bestsellers and change the other 2 files

/store/modules/Bestsellers/bestsellers.php

add

# Ability Template
if ($config['Ability_Template']['abi_addon_image_preview'] == 'Y') {
if (!empty($bestsellers)) {
foreach($bestsellers as $key=> $product)
$bestsellers[$key]["image_url"] = func_query_first_cell("SELECT image_path FROM $sql_tbl[images_D] WHERE id=".$product["productid"]);
}
}
# /Ability Template

and /ability/modules/Bestsellers/bestsellers.tpl

replace

<a href="product.php?productid={$product.productid}" class="preview"{if $config.Ability_Template.abi_addon_image_preview eq "Y" && (($main eq "catalog" && $cat eq "0") || $main eq "search") && $product.image_url} data-tooltip="sticky_{$product.productid}"{/if}>

But the thumbnail image did not appear. Anyone know why?

Regards,
John

a1deano 06-29-2012 04:28 AM

Re: X-Cart Ability Template v4.4.x
 
Hey John

When will the new template be ready any news on this, if i am correct it will be faster and work with mobiles devices am I correct in thinking this.....Thanks

PhilJ 06-29-2012 12:49 PM

Re: X-Cart Ability Template v4.4.x
 
Quote:

When will the new template be ready any news on this, if i am correct it will be faster and work with mobiles devices am I correct in thinking this.....Thanks

Probably mid-July, It's a pretty big job but I'm trying my best to get it ready ASAP. Yes, it will be mobile-tablet-desktop friendly, having a responsive layout throughout.

I'll be using it as the basis for my own store, so it's in my best interests to get it ready also :)

It will be available for v4.5.1+ only... I am trying build-in as many cool mods as possible without bloating it. The emphasis will be on speed and SEO.

I'm taking features requests by PM.

a1deano 06-29-2012 12:54 PM

Re: X-Cart Ability Template v4.4.x
 
Thanks for letting me know John appreciate it :)

elmirage001 06-29-2012 12:55 PM

Re: X-Cart Ability Template v4.4.x
 
Quote:

Originally Posted by PhilJ
Probably mid-July, It's a pretty big job but I'm trying my best to get it ready ASAP. Yes, it will be mobile-tablet-desktop friendly, having a responsive layout throughout.

I'll be using it as the basis for my own store, so it's in my best interests to get it ready also :)

Hi Phil, Can the new mobile template be set up as a second template with desktops using Ability and mobile-tablet using the new mobile template? Thanks, Paul

JacksmithxD 06-29-2012 01:43 PM

Re: X-Cart Ability Template v4.4.x
 
Quote:

Originally Posted by a1deano
Thanks for letting me know John appreciate it :)


Who is John btw? :roll:

PhilJ 06-29-2012 10:50 PM

Re: X-Cart Ability Template v4.4.x
 
Quote:

Hi Phil, Can the new mobile template be set up as a second template with desktops using Ability and mobile-tablet using the new mobile template? Thanks, Paul

Yes, I don't see why not, however you'd need a device detection script, plus a skin selection script.

With Adapt, we are trying to make X-Cart "responsive" throughout, so that it works pretty much across all devices, without the need for a separate mobile template.

alinush 06-30-2012 12:05 AM

Re: Ability Template v4.4.x custom 404 page
 
I'm having the same problem - does anyone know how to fix this?

The 404 page shows a totally different skin than Ability on 4.4.5



Quote:

Originally Posted by jmccunep
It appears Ability Template doesn't provide any built-in way to serve a 404 error page that uses the template. Am I missing something? Older versions of xcart used a static error page which readily integrated into the store's active template (but perhaps gave substandard 404 server responses?).

XCart 4.4.5 now serves the 404 error page (somehow) by way of a template found here skin/common_files/404/404_en.html which renders an error response page that doesn't even remotely resemble the Ability template. The 404 template file can be customized--though it doesn't look easy to customize it to match the rest of my site (and the source code is protected).

Can a 404 error page be enabled/created that meets 404 standards AND reproduces the header/footer/main menu of the Ability template pages of my site? How?

Thanks as always for help with this (brilliant) template.

XCart 4.4.5
Ability Template 1.051
www.twinoakshammocks.com is the live URL.
The development URL is not live on the web (is in a password protected folder).


a1deano 06-30-2012 09:18 AM

Re: X-Cart Ability Template v4.4.x
 
Wups sorry made a boo boo there sorry Phil id just renamed you to John :)

a1deano 07-01-2012 01:10 AM

Re: X-Cart Ability Template v4.4.x
 
Hi Phil just wanted to ask QT have a mod called quick tips can anything like this be added to the new templates looks a cool thing...

SGS 07-03-2012 04:03 AM

Re: X-Cart Ability Template v4.4.x
 
Phil,

I just installed and updated Ability v1.2 with a Pro 4.5.1. So far it works well but I found something that needs clarification.

A new feature in v1.2 is when mousing over "Featured Products", a image will popup if you have one images set in detailed products. This new feature work fine.

My question is in the past version of Ability, 1.52 for Pro 4.4.5 all my products have more than one detailed images and they would show a popup when moused over while on display, just not in the Featured Products and such. So, when I select a category and see products, there is no longer any popups. Only in the featured products. Is something missing?

And "Yes" I have the boxed checked on ability control "Display first detailed image as a sticky tooltip on product thumbnails hover", mouse over is what I call it. If unchecked, no Featured Product will display a popup.

I did check your demo of Ability using the 4.5.1 cart, its the same. Example is the RC Toy car.

Can this be fixed to work again? With any and all detailed image setting of one or more?

Can the "View Detailed Images (x) Display be centered under the product image again. It was just right in v1.52, but not in this version. You demo also should this as well.

Can a request be made to do the same for "Quick View", I would like to have that function on every product display no matter where it is being seen. Mainly Featured Products, Best Sellers, New Products, Random Products as well as in category pages.

Thanks again,

john99 07-04-2012 01:56 AM

Re: X-Cart Ability Template v4.4.x
 
Quote:

Originally Posted by SGS
Phil,

I just installed and updated Ability v1.2 with a Pro 4.5.1. So far it works well but I found something that needs clarification.

A new feature in v1.2 is when mousing over "Featured Products", a image will popup if you have one images set in detailed products. This new feature work fine.

My question is in the past version of Ability, 1.52 for Pro 4.4.5 all my products have more than one detailed images and they would show a popup when moused over while on display, just not in the Featured Products and such. So, when I select a category and see products, there is no longer any popups. Only in the featured products. Is something missing?

And "Yes" I have the boxed checked on ability control "Display first detailed image as a sticky tooltip on product thumbnails hover", mouse over is what I call it. If unchecked, no Featured Product will display a popup.

I did check your demo of Ability using the 4.5.1 cart, its the same. Example is the RC Toy car.

Can this be fixed to work again? With any and all detailed image setting of one or more?

Can the "View Detailed Images (x) Display be centered under the product image again. It was just right in v1.52, but not in this version. You demo also should this as well.

Can a request be made to do the same for "Quick View", I would like to have that function on every product display no matter where it is being seen. Mainly Featured Products, Best Sellers, New Products, Random Products as well as in category pages.

Thanks again,


Hi Phil,

I also would like to request to have "detailed products popup", "buy now button" and "quick view" on home page Featured, New and Ramdom products.

Thanks,
John

David-Allan 07-06-2012 06:13 AM

Re: X-Cart Ability Template v4.4.x
 
Hey Phil and all the other developers much smarter than me on here.

I've had this issue for a while now and its doing my nut in. When someone comes to our site www.robertsonpackaging.com the welcome tabs with the featured products always defaults to the row view instead of the grid view.

This is what it defaults to:
http://www.robertsonpackaging.com/images/support/defaultView.jpg

but this is what I want it to default to:
http://www.robertsonpackaging.com/images/support/requiredView.jpg

I would be happy if it was just on the grid view all the time and I could then just remove the switcher but I can't seem to find the code to make if default to the grid view.

The options have the very options I need for the product pages but not for the homepage so i'm sure it can't be that difficult to change I just cant find the right code for it.

http://www.robertsonpackaging.com/images/support/grid.jpg

candc 07-06-2012 06:18 AM

Re: X-Cart Ability Template v4.4.x
 
Defaulting to grid for me ok.

Have you cleared your cookies?

David-Allan 07-09-2012 02:20 AM

Re: X-Cart Ability Template v4.4.x
 
Thanks CandC I'm an idiot, I used a different browser and it does default to grid view. I guess if I just remove the switcher code it will default to the grid view and then the customer wont be able to change it to list view. Would be nice to know that it can't be change at all though

David-Allan 07-09-2012 05:37 AM

Re: X-Cart Ability Template v4.4.x
 
I got another one for you guys.

On my homepage I have the grid and list switchers view. I have set the latest, featured, and random to 12 items but teh best sellers only shows 9 products. Is there a way of changing this to show 12 items?

PhilJ 07-10-2012 12:59 AM

Re: X-Cart Ability Template v4.4.x
 
modules > bestsellers > Number of products in bestsellers list

David-Allan 07-10-2012 01:04 AM

Re: X-Cart Ability Template v4.4.x
 
Quote:

Originally Posted by PhilJ
modules > bestsellers > Number of products in bestsellers list


Perfect thanks Phil.

SGS 07-10-2012 04:22 AM

Re: X-Cart Ability Template v4.4.x
 
Quote:

Originally Posted by SGS
Phil,

I just installed and updated Ability v1.2 with a Pro 4.5.1. So far it works well but I found something that needs clarification.

A new feature in v1.2 is when mousing over "Featured Products", a image will popup if you have one images set in detailed products. This new feature work fine.

My question is in the past version of Ability, 1.52 for Pro 4.4.5 all my products have more than one detailed images and they would show a popup when moused over while on display, just not in the Featured Products and such. So, when I select a category and see products, there is no longer any popups. Only in the featured products. Is something missing?

And "Yes" I have the boxed checked on ability control "Display first detailed image as a sticky tooltip on product thumbnails hover", mouse over is what I call it. If unchecked, no Featured Product will display a popup.

I did check your demo of Ability using the 4.5.1 cart, its the same. Example is the RC Toy car.

Can this be fixed to work again? With any and all detailed image setting of one or more?

Can the "View Detailed Images (x) Display be centered under the product image again. It was just right in v1.52, but not in this version. You demo also should this as well.

Can a request be made to do the same for "Quick View", I would like to have that function on every product display no matter where it is being seen. Mainly Featured Products, Best Sellers, New Products, Random Products as well as in category pages.

Thanks again,


Hey Phil,

I know your really busy but any chance you could give me a little feed back on my question, its been over a week and you may have missed it. Is there a fix? Will it be fixed and released in the next update? Anything? My customers really enjoy the images popping up but miss it now.

Thanks again Phil.

a1deano 07-10-2012 07:13 AM

Re: X-Cart Ability Template v4.4.x
 
Hi Phil

A little off track here but when the new template is released next month will the cookie popup on V4.5.1 still show, or is this something we'll have to fit into your coding.........Thanks Dean


All times are GMT -8. The time now is 01:28 AM.

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