Jump to content

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

Product Options - Separate Block Rate Topic   - - - - -

 
  • richiej
  • Member
  • Members
  • Join Date: 12-Feb 13
  • 23 posts

Posted 16 May 2013 - 05:46 PM #1

I am trying to create a separate block containing the product options, i have created the block and included the product options code in it.


<div class="cst_pos cm-reload-{$obj_prefix}{$obj_id}" id="product_options_update_{$obj_prefix}{$obj_id}">
<input type="hidden" name="appearance[show_product_options]" value="{$show_product_options}" />
{hook name="products:product_option_content"}
{if $disable_ids}
{assign var="_disable_ids" value="`$disable_ids``$obj_id`"}
{else}
{assign var="_disable_ids" value=""}
{/if}
{include file="views/products/components/product_options.tpl" id=$obj_id product_options=$product.product_options name="product_data" capture_options_vs_qty=$capture_options_vs_qty disable_ids=$_disable_ids}
{/hook}
<!--product_options_update_{$obj_prefix}{$obj_id}--></div> 


The product options show up but when you click the option, cs-cart throws an error because some of the variables are missing, in the new block the first 2 variables are missing
fn_change_options('', '', '2');


if should be
fn_change_options('5', '5', '2');


anyone know how i could fix this?