Jump to content

Module Help


Guest

Recommended Posts

Hey everyone,

 

I'm looking for some help. This was working and now it's not, product attribute that you enter values for and it won't translate into the cart for some reason (price per square inch).

 

These are the modifications:

 

PRODUCT.TPL

 

{*<pre>
{$product|@print_r}
</pre>*}

~lines ADDED to 28-30

 

$("button[name=Submit]").click(function(e) {
alert('amit');
   var width ='';
var length = '';
width  = $('#aw_group_7').val();
length  = $('#aw_group_8').val();
alert(width+' '+length);
if(width == ''){
alert('Please enter the Width.');
return false;
}
if($('#aw_group_8').val()==''){
alert('Please enter the Length.');
return false;
}
return true;
});

~lines ADDED to 173-192

 

{foreach from=$group.attributes key=id_attribute item=group_attribute}
<li>
<input type="text" class="attribute_text" name="{$groupName}" value="{$group_attribute|escape:'htmlall':'UTF-8'}" onblur="findCombination();getProductAttribute();" />
</li>
{/foreach}
</ul>

~lines ADDED to 363-371

 

<input type="hidden" id="priceAmount" value="{$productPrice}" name="priceAmount" />
   <input type="hidden" id="price" value="{$productPrice}" name="price" />

~lines ADDED to 449-451

 

There are many other changes to controllers and classes..

 

I think there may be an issue with the way I am naming the attribute..namely I put it "width" and "length" for the admin names and "Width" and "Length" as the public names..does anyone see anything I might be doing wrong?

 

Could really use some help!

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...