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

Save clicks editing variants prices quantities X-Cart 4.4.4

 
Reply
   X-Cart forums > X-Cart 4 > Dev Questions
 
Thread Tools Search this Thread
  #1  
Old 11-15-2011, 02:07 PM
  XCart4Life's Avatar 
XCart4Life XCart4Life is offline
 

Advanced Member
  
Join Date: Feb 2010
Posts: 62
 

Thumbs up Save clicks editing variants prices quantities X-Cart 4.4.4

I thought I'd save other people click and waiting time. When I was editing product variant quantities or variant prices I had to click the product first...wait for page to load... then click product variants... wait for page to load. So I added a direct link from the search page in admin.

Edit /skin/common_files/main/products.tpl

Find line:
PHP Code:
<td width="100%">{if $products[prod].main eq "Y" or $main ne "category_products"}<b>{/if}<a href="product_modify.php?productid={$products[prod].productid}{if $navpage}&amp;page={$navpage}{/if}">{$products[prod].product}</a>{if $products[prod].main eq "Y" or $main ne "category_products"}</b>{/if}</td

Change to:

PHP Code:
<td width="100%">{if $products[prod].main eq "Y" or $main ne "category_products"}<b>{/if}<a href="product_modify.php?productid={$products[prod].productid}{if $navpage}&amp;page={$navpage}{/if}">{$products[prod].product}</a> {if $products[prod].is_variants eq 'Y'} | <a href="product_modify.php?productid={$products[prod].productid}&section=variants">Variants</a>{/if} {if $products[prod].main eq "Y" or $main ne "category_products"}</b>{/if}</td
__________________
X-Cart Pro v4.2.2 [Win]
X-Cart Pro v4.2.3 [Win]
X-Cart Pro v4.4.4 [Win]
Reply With Quote
  #2  
Old 11-16-2011, 12:00 AM
  XCart4Life's Avatar 
XCart4Life XCart4Life is offline
 

Advanced Member
  
Join Date: Feb 2010
Posts: 62
 

Default Re: Save clicks editing variants prices quantities X-Cart 4.4.4

Here's also something that saved me some time editing variants. When I am entering numbers I usually go down the column and put all the item codes in first then the next column. But I have to click each one. So I used the tabindex code so you can tab down the column instead of tabbing to the next field on the right.

Edit /skin/your_skin/modules/Product_Options/product_variants.tpl

Find:
PHP Code:
<td class="DataTable"><input type="text" size="10" name="vs[{$k}][productcode]" value="{$v.productcode|escape}maxlength="32"{if $v.sku_err} class="error-field"{/if} /></td>
  <
td class="DataTable"><input type="text" size="5" name="vs[{$k}][weight]" value="{$v.weight|formatprice}/></td>
  <
td class="DataTable"><input type="text" size="5" name="vs[{$k}][avail]" value="{$v.avail|formatnumeric}/></td>
  <
td nowrap="nowrap" class="DataTable"><input type="text" size="7" name="vs[{$k}][price]" value="{$v.price|formatprice}/> 

Change to:
PHP Code:
<td class="DataTable"><input tabindex="1{$k}type="text" size="10" name="vs[{$k}][productcode]" value="{$v.productcode|escape}maxlength="32"{if $v.sku_err} class="error-field"{/if} /></td>
  <
td class="DataTable"><input tabindex="2{$k}type="text" size="5" name="vs[{$k}][weight]" value="{$v.weight|formatprice}/></td>
  <
td class="DataTable"><input tabindex="3{$k}type="text" size="5" name="vs[{$k}][avail]" value="{$v.avail|formatnumeric}/></td>
  <
td nowrap="nowrap" class="DataTable"><input tabindex="4{$k}type="text" size="7" name="vs[{$k}][price]" value="{$v.price|formatprice}/> 
__________________
X-Cart Pro v4.2.2 [Win]
X-Cart Pro v4.2.3 [Win]
X-Cart Pro v4.4.4 [Win]
Reply With Quote

The following user thanks XCart4Life for this useful post:
JWait (11-17-2011)
  #3  
Old 11-16-2011, 01:56 AM
  carlisleglass's Avatar 
carlisleglass carlisleglass is offline
 

eXpert
  
Join Date: Aug 2003
Location: Carlisle, UK
Posts: 316
 

Default Re: Save clicks editing variants prices quantities X-Cart 4.4.4

or you could use this module ...

http://www.bcsengineering.com/store/variant-modifier-tool-for-x-cart.html
__________________
Darren Kierman
Carlisle Glass (http://www.carlisleglass.co.uk/)
... running X-Cart Gold 4.4.5 [unix]
Reply With Quote
Reply
   X-Cart forums > X-Cart 4 > Dev Questions



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 01:40 PM.

   

 
X-Cart forums © 2001-2020