Follow us on Twitter X-Cart on Facebook Wiki
Shopping cart software Solutions for online shops and malls
 

X-Cart Ability Template v4.4.x

 
Reply
   X-Cart forums > X-Cart 4 > Third Party Add-Ons for X-Cart 4
 
Thread Tools
  #281  
Old 06-10-2012, 09:44 AM
 
jmccunep jmccunep is offline
 

Advanced Member
  
Join Date: Nov 2003
Posts: 68
 

Default 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).
__________________
J McCune Porter | twinoakshammocks.com
X-Cart Gold version 4.7.11, unix server
X-Cart reBOOT Template by X-Cart Mods
Reply With Quote
  #282  
Old 06-12-2012, 09:22 AM
 
JacksmithxD JacksmithxD is offline
 

X-Adept
  
Join Date: Oct 2010
Posts: 400
 

Default 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)
__________________
Xcart 4.5.2
Reply With Quote

The following user thanks JacksmithxD for this useful post:
SGS (09-18-2012)
  #283  
Old 06-14-2012, 01:25 PM
 
bf2017 bf2017 is offline
 

Member
  
Join Date: Nov 2011
Posts: 27
 

Default 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?
__________________
4.4.5 Gold
Reply With Quote
  #284  
Old 06-14-2012, 03:11 PM
 
seller seller is offline
 

Senior Member
  
Join Date: Apr 2009
Posts: 131
 

Default 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
__________________
4.2.1
X-Special Offers
Quote Request
Reply With Quote
  #285  
Old 06-15-2012, 05:58 AM
 
PhilJ PhilJ is offline
 

X-Guru
  
Join Date: Nov 2002
Posts: 4,094
 

Default 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.
__________________
xcartmods.co.uk
Reply With Quote
  #286  
Old 06-15-2012, 06:57 AM
 
PhilJ PhilJ is offline
 

X-Guru
  
Join Date: Nov 2002
Posts: 4,094
 

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

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")}
Attached Files
File Type: tpl image_preview_featured.tpl (364 Bytes, 9 views)
__________________
xcartmods.co.uk
Reply With Quote
  #287  
Old 06-19-2012, 06:27 AM
 
jazzmang jazzmang is offline
 

Member
  
Join Date: Mar 2012
Posts: 12
 

Default 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.
__________________
Version 4.5.0 with Ability Template v1.052 (modified)
LAWP - PHP 5.3.29 (patched) - MySQL - 5.0.96 Community - suPHP
Reply With Quote

The following user thanks jazzmang for this useful post:
PhilJ (06-19-2012)
  #288  
Old 06-21-2012, 02:20 AM
  David-Allan's Avatar 
David-Allan David-Allan is offline
 

eXpert
  
Join Date: Oct 2011
Location: Scotland, UK
Posts: 313
 

Default 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
__________________
Live Version : 4.5.2
Licensed Products:
X-Cart Gold
Ability Theme
CDSEO
xCMS
Abandoned Cart
Food Packaging Scotland
Reply With Quote
  #289  
Old 06-21-2012, 12:39 PM
  cherie's Avatar 
cherie cherie is offline
 

X-Wizard
  
Join Date: May 2003
Location: USA
Posts: 1,534
 

Default 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.
__________________
redlimeweb.com
custom mods and design integration
4.7 linux
Reply With Quote
  #290  
Old 06-21-2012, 01:53 PM
 
bf2017 bf2017 is offline
 

Member
  
Join Date: Nov 2011
Posts: 27
 

Default 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
__________________
4.4.5 Gold
Reply With Quote
Reply
   X-Cart forums > X-Cart 4 > Third Party Add-Ons for X-Cart 4



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump


All times are GMT -8. The time now is 03:38 PM.

   

 
X-Cart forums © 2001-2020