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
  #241  
Old 05-02-2012, 07:40 AM
 
JacksmithxD JacksmithxD is offline
 

X-Adept
  
Join Date: Oct 2010
Posts: 400
 

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

Quote:
Originally Posted by swartzieee
I downloaded from Phil's free mod's

http://www.xcartmods.co.uk/docs/ability/ View customisation tab.

If its not working I can only assume it's to do with where your editing your code. Double check it. Below is a vital bit of information regarding installations of add ons etc on Ability, and I quote.

"Now, the main template repository is skin/common_files
Any files in skin/ability, will override those in /skin/common_files"

Basically any files that need to be edited in the skin/common_files/ directory will actually need to be edited will be in skin/ability/
__________________
Xcart 4.5.2
Reply With Quote
  #242  
Old 05-03-2012, 07:18 PM
 
stevekem stevekem is offline
 

Senior Member
  
Join Date: Dec 2006
Posts: 111
 

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

When you click any of the red car images in the "Promotions" or "Special Offers" boxes in the left column, is something suppose to happen? It changes to a magnifying glass on image mouseover, but when you click it, it does nothing. Is this suppose to work this way, just curious?

Or do we code our own links in each image?
__________________
X-Cart Gold v4.4.1
Reply With Quote
  #243  
Old 05-03-2012, 07:30 PM
 
PhilJ PhilJ is offline
 

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

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

They're just there for demo purposes, you can use them or remove them.
__________________
xcartmods.co.uk
Reply With Quote
  #244  
Old 05-03-2012, 07:37 PM
 
stevekem stevekem is offline
 

Senior Member
  
Join Date: Dec 2006
Posts: 111
 

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

Thanks, I just wasn't sure if anything special happened like they opened up a lightbox image gallery or something

As a sidenote Phil, did you get my PM regarding the custom mod?



Quote:
Originally Posted by PhilJ
They're just there for demo purposes, you can use them or remove them.
__________________
X-Cart Gold v4.4.1
Reply With Quote
  #245  
Old 05-03-2012, 07:52 PM
 
PhilJ PhilJ is offline
 

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

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

I did yes, looks easy enough, I'll be in touch.
__________________
xcartmods.co.uk
Reply With Quote
  #246  
Old 05-05-2012, 05:55 AM
 
Duramax 6.6L Duramax 6.6L is offline
 

X-Adept
  
Join Date: Dec 2006
Posts: 865
 

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

Phil,

Is the Ability Template compatible with the Smarty 3 upgrade that Xcart just released.
__________________
Xcart 5.1.6 Building New Store
Xcart4.6.4 Gold Plus
Xcart 4.6.4 Platinum
Smart Template,
Mail Chimp Upgrade
Checkout One (One Page Checkout)
Checkout One X-Payments Connector
Checkout One Deluxe Tools
Call For Price
On Sale Module
Buy Together Module
MAP Price MOD
Reply With Quote
  #247  
Old 05-06-2012, 06:59 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 Ability Template compatible with the Smarty 3 upgrade that Xcart just released.

There's no reason why not, but be aware of what you are getting into first, as it will probably interfere with your mods, due to deprecated Smarty tags etc.

Also, people are reporting it's slower than v2.x.

If it ain't broke...
__________________
xcartmods.co.uk
Reply With Quote
  #248  
Old 05-10-2012, 05:43 PM
 
PhilJ PhilJ is offline
 

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

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

Quick tip to disable IE8 standards mode...

skin/common_files/customer/meta.tpl

Replace...
Code:
<meta http-equiv="X-UA-Compatible" content="IE=8" />
With...
Code:
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
...which should enable rounded corners and other CSS3 effects in IE9 etc.

Not sure why QT are still doing this, even in v4.5.0 !
__________________
xcartmods.co.uk
Reply With Quote

The following 2 users thank PhilJ for this useful post:
elmirage001 (05-10-2012), klinetim (05-11-2012)
  #249  
Old 05-19-2012, 01:36 PM
 
jmccunep jmccunep is offline
 

Advanced Member
  
Join Date: Nov 2003
Posts: 68
 

Default Quick View in Ability Template on v4.4.5

The Quick View feature on my xcart v4.4.5 development site is showing a market price of 0.00 but I don't want to show the market/list price there if I have the market price set in the product backend to zero. The product details page doesn't show the market price when the product backend has that field set to empty/zero but the market price does still show, at zero, in Quick View.

It's seems clear that quick_view.tpl must be edited to alter this.

What is the best code change to correct this minor flaw, in a way that the market price will still show if it's not set at zero?

/ability/custom/addons/quick_view/quick_view.tpl

Below seems like the relevant bit of code to change from that template but how should it best be changed? Presumably the first smarty tag has to be altered. Can someone guide me on that?

{if $product.list_price}<div class='grid_6'><b>{$lng.lbl_market_price}:</b></div><div class='grid_6'>{$config.General.currency_symbol}{$ product.list_price}</div><div class='clearing'></div>{/if}
__________________
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
  #250  
Old 05-19-2012, 06:03 PM
 
elmirage001 elmirage001 is offline
 

X-Wizard
  
Join Date: Apr 2007
Posts: 1,966
 

Default Re: Quick View in Ability Template on v4.4.5

Quote:
Originally Posted by jmccunep
The Quick View feature on my xcart v4.4.5 development site is showing a market price of 0.00 but I don't want to show the market/list price there if I have the market price set in the product backend to zero. The product details page doesn't show the market price when the product backend has that field set to empty/zero but the market price does still show, at zero, in Quick View.

It's seems clear that quick_view.tpl must be edited to alter this.

What is the best code change to correct this minor flaw, in a way that the market price will still show if it's not set at zero?

/ability/custom/addons/quick_view/quick_view.tpl

Below seems like the relevant bit of code to change from that template but how should it best be changed? Presumably the first smarty tag has to be altered. Can someone guide me on that?

{if $product.list_price}<div class='grid_6'><b>{$lng.lbl_market_price}:</b></div><div class='grid_6'>{$config.General.currency_symbol}{$ product.list_price}</div><div class='clearing'></div>{/if}
Try the following. If price is zero I removed the "add to cart" link also. Changes are shown in red. If you copy and paste and the quick view does not work then insert the changes into the original line of code. Do not add any spaces or it won't work.

Replace:
Quote:
var html = $("{/literal}<h2>{$product.product}</h2><div class='container_12'><div class='grid_4'><img src='image.php?type=T&amp;id={$product.productid}' alt='{$product.product}' /></div><div class='grid_8'><p>{$product.descr|truncate:9999:'. ..':true|strip|strip_tags:true|replace:'"':''}</p>{if $config.Appearance.show_in_stock eq 'Y'}<div class='grid_6'><b>{$lng.lbl_in_stock}:</b></div><div class='grid_6'>{if $product.avail gt 0}{$lng.txt_items_available|substitute:'items':$pr oduct.avail}{else}{$lng.lbl_no_items_available}{/if}</div><div class='clearing'></div>{/if}<div class='grid_6'><b>{$lng.lbl_price}:</b></div><div class='grid_6'><span style='color:red;font-weight:bold;font-size:14px'>{$config.General.currency_symbol}{$prod uct.taxed_price}</span></div><div class='clearing'></div><br /><p><a class='add_link' href='cart.php?mode=add&amp;productid={$product.pr oductid}&amp;amount=1'>{$lng.lbl_add_to_cart}</a>&nbsp;&nbsp;&nbsp;<a class='arrow_link' href='product.php?productid={$product.productid}'> {$lng.lbl_quick_view_product}</a></p></div><div class='clearing'></div></div>{literal}");
With This:
Quote:
var html = $("{/literal}<h2>{$product.product}</h2><div class='container_12'><div class='grid_4'><img src='image.php?type=T&amp;id={$product.productid}' alt='{$product.product}' /></div><div class='grid_8'><p>{$product.descr|truncate:9999:'. ..':true|strip|strip_tags:true|replace:'"':''}</p>{if $config.Appearance.show_in_stock eq 'Y'}<div class='grid_6'><b>{$lng.lbl_in_stock}:</b></div><div class='grid_6'>{if $product.avail gt 0}{$lng.txt_items_available|substitute:'items':$pr oduct.avail}{else}{$lng.lbl_no_items_available}{/if}</div><div class='clearing'></div>{/if}<div class='grid_6'><b>{$lng.lbl_price}:</b></div><div class='grid_6'>{if $product.taxed_price gt 0}<span style='color:red;font-weight:bold;font-size:14px'>{$config.General.currency_symbol}{$prod uct.taxed_price}</span>{/if}</div><div class='clearing'></div><br /><p>{if $product.taxed_price gt 0}<a class='add_link' href='cart.php?mode=add&amp;productid={$product.pr oductid}&amp;amount=1'>{$lng.lbl_add_to_cart}</a>&nbsp;&nbsp;&nbsp;{/if}<a class='arrow_link' href='product.php?productid={$product.productid}'> {$lng.lbl_quick_view_product}</a></p></div><div class='clearing'></div></div>{literal}");
__________________
WooCommerce as of 10/2022
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 09:36 AM.

   

 
X-Cart forums © 2001-2020