Miva Merchant 4 Module FAQs » Product Page Templates (BROK_PRODTEMPLATES )
Yes, conditional tokens have been added:
%begin_hasimage%...%end_hasimage% displays contents if product image file exists
%begin_hasnoimage%...%end_hasnoimage% displays contents if product image file does not exist
%begin_hasthumbnail%...%end_hasthumbnail% displays contents if product thumbnail file exists
%begin_hasnothumbnail%...%end_hasnothumbnail% displays contents if product thumbnail file does not exist
%begin_nopricediscount%...%end_nopricediscount% displays contents if the list price is NOT lower than product price
%begin_nocostdiscount%...%end_nocostdiscount% displays contents if the price is NOT lower than the cost
which you can use for this.
For example, to display a generic image in the place of missing images you would replace the %prodimage% token with:
%begin_hasimage%
%prodimage%
%end_hasimage%
%begin_hasnoimage%

%end_hasnoimage%
{docurl}
Adding Additional / Alternate Product Images
Are there tokens to conditionally display an alternate image if the product has no image or if the image is missing? (2003/05/30)
Yes, conditional tokens have been added:
%begin_hasimage%...%end_hasimage% displays contents if product image file exists
%begin_hasnoimage%...%end_hasnoimage% displays contents if product image file does not exist
%begin_hasthumbnail%...%end_hasthumbnail% displays contents if product thumbnail file exists
%begin_hasnothumbnail%...%end_hasnothumbnail% displays contents if product thumbnail file does not exist
%begin_nopricediscount%...%end_nopricediscount% displays contents if the list price is NOT lower than product price
%begin_nocostdiscount%...%end_nocostdiscount% displays contents if the price is NOT lower than the cost
which you can use for this.
For example, to display a generic image in the place of missing images you would replace the %prodimage% token with:
%begin_hasimage%
%prodimage%
%end_hasimage%
%begin_hasnoimage%

%end_hasnoimage%
Last update: 2003-07-29 20:39
Author: Support
Revision: 1.0
You cannot comment on this entry
Records in this category
- Prices Displaying Incorrectly
- Displaying Customer IP
- Using Tokens to Evaluate Expressions
- Using OpenUI Tokens
- Adding Additional Product Images
- Hiding Specific Product Prices
- %next% and %previous% Tokens Not Functioning After Changing %prodnameL% Token
- Using Tokens to Add Attributes Automatically
- Adding Borders and Alt Tags to Images
- Displaying Original Price As a Strike-Through If Customer's Price Is Lower
- Adding
- Adding Additional / Alternate Product Images
- Using Tokens To Conditionally Control Text Based on Price or Availability Group
- Displaying Radio Options In Rows
- Displaying Different Attributes (i.e. Colors) in 3 or More Rows
- Using "Add to Basket" AND "Buy One Now" Buttons In The Same Template
- Attributes Not Showing Within Merchant 4.00
- Displaying Related Products As Thumbnails 3 Across
- Using Pop-Up Windows to a Larger Image
- Compatibility With SB's Hi-res Image Module
- Where Can I Find The Latest Tokens?
- Is it possible to modify the contents of the "select" type attibutes?
- I would like to have my attributes display differently within a single product depending on the attribute. For example, I would like the first "select" type attribute to have a default of
- I'm not displaying the attributes on my product page so I'm not using the %attributes% token. However, I want the customer to be prompted to select the attributes when they add the product to their basket, but it isnt' working. How can I do that?
- When I use the code: %begin_if|len(OUI_Products2.d.shortdesc)|% it sometimes shows the short description for some other product.
- Is it possible to display the attribute prompt as the default message for "select" type attributes?
- Can I have a "Email for more info" link on my page which is automatically populated with the product code and name?
- Is it possible to have the module default to showing more than 10 templates at a time?
- I'm running into problems in that some of my tokens are not being processed correctly. For example, I'm trying to do this: %begin_if|%module|modcode:position%|% ... %end_if%but it just generates errors or the %module simply shows up on the page. What could be wrong?
- In the PROD TEMPLATE, is there a way to use tokens in the "Add to Basket alt:"
- I am unable to find tokens for the following fields in the Product Page. Product Display Header: Product Display Footer: Sub-Global Header: Sub-Global Footer:
- How do I conditionally test for the existence of an image on the server (not the image assigned to the product but one I upload myself)?
- I'd like to display my attribute options with their own "add to basket" button. Something like: product1 color1
color2 attribute2 color1 color2 Is this possible? - I'm using the %attrqtybox|xx|% feature for some of my products but the products are not being added to the basket correctly. Any ideas?
- I would like to control the size of the text and memo fields in my attributes. How?
- I would like to use a token within another token, such as: %begin_if|%module|mymod|1|%|% stuf %end_if% But this isn't working correctly. Why?
- I would like to use the %begin_if|expression|% token to dispaly something if the product has a value in a field stored in the Additional Fields Manager (http://vikingcoders.com/go.mv?ID=DEN_PRODFIELDS). How can I go about it?
- I'm using your Affiliate Manager module and I would like to display some text only if the customer followed a particular affiliate's referral link. How can I do that?
- I would like to use the "attribute quantity" feature that you recently added to the module to let my customers select quantities for each attribute. However, instead of text fields, I would like to use drop down lists so that they can select the quantities. Can this be done?
- Is there a token I can us to display the fonts as I set them in admin?
- I am attempting to use a token from a third party module in the "Product template" area but it's not working. What might be causing this?
- I have a checkbox attribute that I want to default as checked. I normally would use a VMod, but can't with Cat page templates. Do you have any ideas how I could do this with your module?
- Using the new attribute quantity feature, I would like to make sure that the customer selects a set number of attributes. For example, I'm selling a three pack of soap and I would like them to select a color for each item in the "pack". How can I go about this?
- I would like to have quantity boxes for my attributes so customers can select a quantitiy for each one rather than having to add the same product several times. For example, I sell fishing flies in different sizes and I would like my customers to be able to go to a product page and enter the quantity that they want for each size. Can I do this?
- I would like to customize the titles for my Product pages. How can I do this?
- The prices displayed by the module are not properly displaying the price calculated by my discount module. How can I get it to correctly display the price?
- Is it possible to use the OpenUI's tokens in this module's templates?
- Is there any way to introduce additional product images?
- The price of some of my products is determined by the attributes but I don't want to display the 0.00 price for those products. Can I hide the price just for those products?
- I recently changed the %prodnameL% token in the Category Page Templates module with my own html so that I could add an image title:%prodname% However, now the %next% and %previous% tokens aren't working in the Product Page Templates module (i.e. they are not appearing).
- I have a module which shows the price for an attribute automatically in the attribute box (so I don't have to manually code each one). However it doesn't appear to be compatible. Can I do this with the template modules?
- Displaying Attribute Price + Product Price, with a discount
- Can I configure the module so that the Related Products are added to the basket when the main product is added
- Can I configure the module so that I can add a "add all to basket" button for the Related Products so that I can specify a quantity for each and add them all at once?














