![]() |
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). |
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) |
Re: X-Cart Ability Template v4.4.x
Quote:
Did anyone find a solution to this? |
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 |
Re: X-Cart Ability Template v4.4.x
Quote:
|
Re: X-Cart Ability Template v4.4.x
1 Attachment(s)
Quote:
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 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")} |
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. |
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 |
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.
|
Re: X-Cart Ability Template v4.4.x
Quote:
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 |
All times are GMT -8. The time now is 01:29 AM. |
Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.