Hello Jim,
ok. This was what I was looking for. I want to be consistent with the
wording through the store. So I am using [-- Store.Quantity --].
The product page and the product more information page now display the
correct wording. However I have the problem, that the add to cart button on
the more information page does not have the form tags in the source code and
therefore does not add the product to the cart?! I wonder where this is
coming from as I did not much more then to copy the shopsite templates and
renamed them.
To make sure I have re-copied the shopsite DefaultCustomProductTemplate just
by renaming it and assigning it to a product. The Add to Cart button does
not work on the more information page.
According to the source code there is a problem with a VAR: <!-- VAR
ADDBUTTONGRAPHIC IS NOT DEFINED -->?!
Sorry I am to blind to find the spot in the code to hit with the hammer. Can
somebody put his finger there for me?!
This is the source code from the product page:
<form action="http://www.danshop.com/cgi-bin/shopsite/sc/order.cgi"
method=post>
<table class="Product">
<tr>
<td class="ProductGraphicLeft" valign="top">
<a href="http://www.danshop.com/12045.html"><img
src="http://www.danshop.com/media/annepapiert.jpg" width=75 height=96
alt="annepapiert.jpg" hspace=3 vspace=3 border=0></a>
</td> <!-- This closes the product graphic cell -->
<td valign="top" class="ProductText"> <!-- This opens the text cell -->
<b> <a href="http://www.danshop.com/12045.html">Laerdal
Diagrammpapier für Recording Resusci Anne</a>
</b>
<font face="Arial, Helvetica, sans serif">
<br>
<Small><b>Euro 50,40</b></Small> </font>
<br>
<Small>120450</Small>
<br><a href="http://www.watersafety.net/d/order/dstatus.htm"
target="_blank"><img border="0" src="images/dir/lief/wuhr.gif" width="27"
height="16" alt="Artikel wird nach der Bestellung beim Lieferanten geordert.
Versandfertig in 1-2 Wochen"></a>
<br>Original Laerdal Zubehör. Diagrammpapier für die Laerdal Recording
Resusci Anne Ausbildungpuppe.<br>
<input type=hidden name=storeid value=*1237fdbc5aa30c689d4025>
<input type=hidden name=dbname value=products>
<input type=hidden name=function value=add>
<input type=hidden name=itemnum value=439>
<!-- VAR MOREINFOPAGE IS NOT DEFINED -->
Menge <input type=text size=2 name="439:qnty" value="1" >
<!-- VAR ADDBUTTONGRAPHIC IS NOT DEFINED -->
<input type=image src="http://www.danshop.com/media/indenwarenkorb.gif"
align="middle" width="134" height="22" alt="Artikel in den Warenkorb
legen/Add to Cart" border="0">
</td> <!-- Close cell for product name and description -->
</tr>
</table>
</form>
-----------------------------------------------------------
This is the source code on the generated more information page:
<img src="http://www.danshop.com/media/annepapierp.jpg" width=250
height=321 alt="annepapierp.jpg" hspace=3 vspace=3 border=0 align="left">
<h2>Laerdal Diagrammpapier für Recording Resusci Anne</h2>
<br>
<Small><b>Euro 50,40</b></Small>
<br>
<Small>120450</Small>
<br>
<br><a href="http://www.watersafety.net/d/order/dstatus.htm"
target="_blank"><img border="0" src="images/dir/lief/wuhr.gif" width="27"
height="16" alt="Artikel wird nach der Bestellung beim Lieferanten geordert.
Versandfertig in 1-2 Wochen"></a>
<br>Original Laerdal Zubehör.<br>Diagrammpapier für die Laerdal Recording
Resusci Anne Ausbildungpuppe.
<br>
<center>
<input type=hidden name=storeid value=*108bd149c706a3f0df90>
<input type=hidden name=dbname value=products>
<input type=hidden name=function value=add>
<input type=hidden name=itemnum value=439>
<br>
Menge <input type=text size=2 name="439:qnty" value="1"
!-- VAR ADDBUTTONGRAPHIC IS NOT DEFINED --
<input type=image src="http://www.danshop.com/media/indenwarenkorb.gif"
align="middle" width="134" height="22" alt="Artikel in den Warenkorb
legen/Add to Cart" border="0">
</center>
--------------------
The copied shopsite product template looks like this:
# Generic Product Template with No "View Cart" button
#########################
[-- DEFINE SUBPRODUCT --]
#########################
[-- IF VAR.MoreInfoTemplate --]
<div class="Subproduct">
<form action="[-- SHOPPING_CART_URL BASE --]/order.cgi" method=post>
[-- INCLUDE Subproduct-Name PROCESS --]
[-- INCLUDE Subproduct-Price PROCESS --]
[-- INCLUDE Subproduct-AddToCartButton PROCESS --]
[-- INCLUDE Subproduct-ViewCartButton PROCESS --]
</div>
[-- ELSE --]
[-- INCLUDE Subproduct-Name PROCESS --]
[-- INCLUDE Product-Price PROCESS --]
[-- INCLUDE Subproduct-AddToCartButton PROCESS --]
[-- INCLUDE Subproduct-ViewCartButton PROCESS --]
[-- END_IF --]
#############################
[-- END_DEFINE SUBPRODUCT --]
#############################
######################
[-- DEFINE PRODUCT --]
######################
### Set a bunch of variables ###
[-- VAR.TableLayout no --]
#[-- VAR.Form no --]
[-- VAR.Options no --]
[-- VAR.Quantity no --]
[-- VAR.Graphic no --]
### Start the form for Add to Cart button ###
[-- IF PRODUCT.Subproduct --]
# do nothing
[-- ELSE --]
<form action="[-- SHOPPING_CART_URL BASE --]/order.cgi" method=post>
[-- END_IF --]
#####################
# GRAPHIC ALIGNMENT #
#####################
[-- INCLUDE Product-GraphicAlign PROCESS --]
####################
# PRODUCT GRAPHIC #
####################
[-- INCLUDE Product-Graphic PROCESS --]
########################
# PRODUCT NAME #
########################
[-- INCLUDE Product-Name PROCESS --]
########################
# PRODUCT SUBPRODUCTS #
########################
[-- IF PRODUCT.Subproduct --]
# Product has subproducts, so just show description for this product
# and then loop through subproducts
[-- INCLUDE Product-Description PROCESS --]
[-- VAR.MoreInfo no --]
[-- LOOP SUBPRODUCTS --]
[-- SUBPRODUCTS --]
[-- END_LOOP SUBPRODUCTS --]
[-- ELSE --]
# Product does not have subproducts
####################
# PRODUCT PRICE #
####################
[-- IF PRODUCT.QuantityPricing --]
#do nothing
[-- ELSE --]
[-- INCLUDE Product-Price-wsgmbh PROCESS --]
[-- END_IF --]
########################
# PRODUCT SKU #
########################
[-- INCLUDE Product-Sku PROCESS --]
########################################
# PRODUCT FIELD1/LIEFERSTATUS #
########################################
[-- INCLUDE Product-Field1-wsgmbh PROCESS --]
########################
# PRODUCT DESCRIPTION #
########################
[-- INCLUDE Product-Description PROCESS --]
#######################
# ADD TO CART BUTTON #
#######################
[-- INCLUDE Product-AddToCartButton-wsgmbh PROCESS --]
# end the IF PRODUCT.subproducts
[-- END_IF --]
###########################
# PRODUCT GRAPHIC #
# align=right, wrap=off #
###########################
[-- INCLUDE Product-GraphicRight PROCESS --]
[-- IF PRODUCT.Subproduct --]
# do nothing
[-- ELSE --]
</form>
[-- END_IF --]
[-- END_DEFINE PRODUCT --]
#############################
[-- DEFINE MORE_INFO_PAGE --]
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
"http://www.w3.org/TR/html4/loose.dtd">
#############################
[-- VAR.MoreInfo "yes" --]
[-- IF VAR.MoreInfoTemplate --]
[-- INCLUDE VAR.MoreInfoTemplate PROCESS --]
[-- ELSE --]
[-- INCLUDE Classic-MoreInfoPage-wsgmbh PROCESS --]
[-- END_IF --]
[-- VAR.MoreInfo "" --]
[-- END_DEFINE MORE_INFO_PAGE --]
------------------------------------
This is Classic-MoreInfoPage-wsgmbh:
### Default More Info Page Template ###
<html>
[-- INCLUDE MoreInfo-Head PROCESS --]
#[-- INCLUDE Classic-MoreInfo.css PROCESS --]
</head>
[-- VAR.PageMargins "No" --]
[-- INCLUDE MoreInfo-Body PROCESS --]
[-- IF MORE_INFO.DisplayPageHeader --]
<div class="header">[-- HEADER --]</div>
[-- END_IF --]
[-- IF PRODUCT.MoreInformationGraphic --]
<img [-- PRODUCT.MoreInformationGraphic Remove_HTML --] align="left">
[-- END_IF --]
[-- IF PRODUCT.DisplayName --]
[-- IF PRODUCT.Subproduct --]
<h2>[-- PRODUCT.Name --]</h2>
[-- ELSE_IF PRODUCT.VariablePrice? --]
[-- IF PRODUCT.VariableName? --]
[-- STORE.ProductName --]: <input type=text name="[--
PRODUCT.RecordNumber --]:name" size="20" maxlength="100" value="">
[-- ELSE --]
<h2>[-- PRODUCT.Name --]</h2>
[-- END_IF --]
[-- ELSE --]
<h2>[-- PRODUCT.Name --]</h2>
[-- END_IF --]
[-- END_IF --]
[-- IF PRODUCT.QuantityPricing --]
#do nothing
[-- ELSE --]
[-- INCLUDE Product-Price PROCESS --]
[-- END_IF --]
[-- IF PRODUCT.Subproduct --]
# don't display the SKU
[-- ELSE --]
[-- INCLUDE Product-Sku PROCESS --]<br>
[-- END_IF --]
########################################
# PRODUCT FIELD1/LIEFERSTATUS #
########################################
[-- INCLUDE Product-Field1-wsgmbh PROCESS --]
<br>[-- PRODUCT.MoreInformationText --]
<br>
[-- IF PRODUCT.Subproduct --]
# Product has subproducts
[--LOOP SUBPRODUCTS--]
[--SUBPRODUCTS--]
[--END_LOOP SUBPRODUCTS--]
[-- ELSE --]
# Product does not have subproducts
#######################
# ADD TO CART BUTTON #
#######################
<center>
[-- INCLUDE Product-AddToCartButton-wsgmbh PROCESS --]
</center>
# end the IF PRODUCT.subproducts
[--END_IF--]
<br>
[-- IF MORE_INFO.DisplayPageFOOTER --]
[-- FOOTER --]
[-- END_IF --]
</body>
</html>
---------------------
And this is Product-AddToCartButton-wsgmbh:
#######################
# ADD TO CART BUTTON #
#######################
[-- IF PRODUCT.QuantityPricing --]
<div class="QPtable">
[-- PRODUCT.QuantityPricing --]
</div>
[-- END_IF --]
<input type=hidden name=storeid value=[-- STORE_ID --]>
<input type=hidden name=dbname value=products>
<input type=hidden name=function value=add>
<input type=hidden name=itemnum value=[-- PRODUCT.RecordNumber --]>
[-- IF PRODUCT.DisplayOrderingOptions --]
[-- IF PRODUCT.OptionText --]
<br>[-- PRODUCT.OptionText --]
[-- END_IF --]
[-- ORDER_OPTION_MENU LINE --]
[-- END_IF --]
[-- IF PRODUCT.DisplayOrderQuantity checked --]
[-- IF PRODUCT.DisplayOrderingOptions --]
#do nothing
[-- ELSE --]
[-- IF VAR.MoreInfoPage "yes" --]
<br>
[-- END_IF --]
[-- END_IF --]
[-- Store.Quantity --] <input type=text size=2 name="[--
PRODUCT.RecordNumber --]:qnty" value="1" >
[-- END_IF --]
[-- IF VAR.AddButtonGraphic --]
<input type=image class="add" src="[-- OUTPUT_DIRECTORY_URL --]/[--
VAR.Media --]/[-- VAR.AddButtonGraphic --]" name="Add to Cart" alt="Add to
Cart">
[-- ELSE_IF ADDIMAGE? --]
<input type=image [--ADDIMAGE--]>
[-- ELSE --]
<input class="add" type=submit value="[-- ADDTEXT --]">
[-- END_IF --]
----------------------
Regards,
Niko
"Jim" <jstavast@xmission.com> schrieb im Newsbeitrag
news:dcb6cc$kp6$1@eval.shopsite.com...
The section of code that is putting out the "Quantity" is in an include
file called Product-AddToCartButton.
here is the section of code that does it
------------------
[-- IF PRODUCT.DisplayOrderQuantity checked --]
[-- IF PRODUCT.DisplayOrderingOptions --]
#do nothing
[-- ELSE --]
[-- IF VAR.MoreInfoPage "yes" --]
br
[-- END_IF --]
[-- END_IF --]
Quantity <input type=text size=2 name="[--
PRODUCT.RecordNumber --]:qnty" value="1" >
[-- END_IF --]
---------------------
You could replace the word "Quantity" in the line
Quantity <input type=text size=2 name="[-- PRODUCT.RecordNumber --]:qnty"
value="1" >
with "Menge" or you could use the tag [-- Store.Quantity --] to pull the
text from the backoffice settings. Note that the text for "Quantity" on
Preferences > Store Text> Shopping cart screen is used in several places
in the store, i.e. the product table in the shopping cart, the quantity
pricing table on store pages and if you implement the above change it
would be used for the product quantity input box on store pages. There
may be different terms you would want to use in some of these places, if
so you would want to hardcode the text in the template.
Jim