- 40
I am using 2.65, and am trying to follow the integration guide but am not sure where to change as the code looks different than the integration guide. I am using a custom theme, so I assume that I need to do the manual integration vs the automatic.
On the product Box page, the code is a little different and am not 100% sure how to integrate.
The code is here:
<input type="button" value="@(Model.ProductPrice.AvailableForPreOrder ? T("ShoppingCart.PreOrder") : T("ShoppingCart.AddToCart"))" class="button-2 product-box-add-to-cart-button" onclick="AjaxCart.addproducttocart('@addtocartlink');return false;" />
}
On the product detail page, using the Product Variant template the code is also a little different than the integration guide.
This code is here and also a little unsure of where to place the code from the integration guide
<input type="button" class="button-1 add-to-cart-button" value="@(Model.AvailableForPreOrder ? T("ShoppingCart.PreOrder") : T("ShoppingCart.AddToCart"))" onclick="AjaxCart.addproductvarianttocart('@Url.RouteUrl("AddProductVariantToCart", new { productVariantId = Model.ProductVariantId, shoppingCartTypeId = (int)ShoppingCartType.ShoppingCart })', '#product-details-form');return false;" />
Thanks
On the product Box page, the code is a little different and am not 100% sure how to integrate.
The code is here:
<input type="button" value="@(Model.ProductPrice.AvailableForPreOrder ? T("ShoppingCart.PreOrder") : T("ShoppingCart.AddToCart"))" class="button-2 product-box-add-to-cart-button" onclick="AjaxCart.addproducttocart('@addtocartlink');return false;" />
}
On the product detail page, using the Product Variant template the code is also a little different than the integration guide.
This code is here and also a little unsure of where to place the code from the integration guide
<input type="button" class="button-1 add-to-cart-button" value="@(Model.AvailableForPreOrder ? T("ShoppingCart.PreOrder") : T("ShoppingCart.AddToCart"))" onclick="AjaxCart.addproductvarianttocart('@Url.RouteUrl("AddProductVariantToCart", new { productVariantId = Model.ProductVariantId, shoppingCartTypeId = (int)ShoppingCartType.ShoppingCart })', '#product-details-form');return false;" />
Thanks