Jump to content

  • You cannot start a new topic
  • You cannot reply to this topic

Want to add Quantity to compact list Rate Topic   - - - - -

  • kogi
  • Senior Member
  • Members
  • Join Date: 16-Aug 07
  • 639 posts

Posted 12 August 2011 - 05:37 AM #1

I've managed to add qty to the compact list. But I can't figure out how to change the amount of space it takes up.and wonder if anyone have an easy way of fixing it.

Posted Image
find / -type f -name '*.base' -exec chown kogi.kogi {} \;

  • Cached
  • Member
  • Members
  • Join Date: 02-Mar 11
  • 49 posts

Posted 12 August 2011 - 06:22 AM #2


Hi I learn this modification when im trying to add quantity in Product Configurator

try this code to make it works....

Open skin/basic/constomer/block/list_templates

find compact_list.tpl and copy this code, make sure you need to backup 1st, hope this code will help you

<div {if !$capture_options_vs_qty} product-list-field{/if}{if $settings.Appearance.quantity_changer == "Y"} changer{/if}" id="qty_{$obj_prefix}{$obj_id}">
				{if $product.qty_content}
				<select name="product_data[{$obj_id}][amount]" id="qty_count_{$obj_prefix}{$obj_id}">
				{assign var="a_name" value="product_amount_`$obj_prefix``$obj_id`"}
				{assign var="selected_amount" value=false}
				{foreach name="`$a_name`" from=$product.qty_content item="var"}
					<option value="{$var}" {if $product.selected_amount && ($product.selected_amount == $var || ($smarty.foreach.$a_name.last && !$selected_amount))}{assign var="selected_amount" value=true}selected="selected"{/if}>{$var}</option>
				{if $settings.Appearance.quantity_changer == "Y"}
				<div class="center valign cm-value-changer">
					<a class="cm-increase"><img src="{$images_dir}/icons/up_arrow.gif" width="11" height="5" border="0" /></a>
					<input type="text" size="5" class="input-text-short cm-amount" id="qty_count_{$obj_prefix}{$obj_id}" name="product_data[{$obj_id}][amount]" value="{$default_amount}" />
					{if $settings.Appearance.quantity_changer == "Y"}
					<a class="cm-decrease"><img src="{$images_dir}/icons/down_arrow.gif" width="11" height="5" border="0" /></a>


Posted 18 September 2011 - 04:58 PM #3

I am using the code supplied above which works fine except is there a way to make the quantity box dissappear when there is no stock available or when the item has options?
CS-Cart v2.2.4 PRO

The road to success is always under construction!