Announcement

Collapse
No announcement yet.

Hide Quantity

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    Hide Quantity

    Hello,

    I need to hide the quantity option for a particular product and keep the default amount of "1". I have looked at other threads and tried to adapt the recommendations to V10 but I think the variables have changed.

    Also is it possible to change the "Price" description for just one product. For example to "cost per person"?


    Any help would be great

    Cheers

    #2
    Hey,

    First of all make a snapshot of your website as a backup, just incase anything goes wrong.

    Point 1

    The best way would be to create a new template; go to Design -> Library -> Layouts -> Products

    Right click the template you are currently using and select copy. It will create a new variable called templatename(copy), right click selecting edit to rename it.

    Scroll down to where the quantity variables, e.g. QuantityPrompt, making sure that the lines that you will edit is for all visible customers.

    E.g.
    Code:
    			<!-- This code is used when the quantity box is visible to all customers -->
    			<br />
    			<span class="actrequired"><Actinic:Variable Name="QuantityPrompt"/></span>
    			&nbsp;
    			<input type="text" name="Q_<actinic:variable Name="ProductID"/>" size="4" value="<Actinic:Variable Name="DefaultQuantity"/>" />
    Changed it to:
    Code:
    <input type="hidden" name="Q_<actinic:variable Name="ProductID"/>"  value="<actinic:variable name="DefaultQuantity"/>" />
    Click ok, then select the products for the default hidden quantity. Go to Layout -> Product Layout and select the template you have just created.

    This is the best way I can think of to do this, unless you would like it as a global setting across your whole website.

    Point 2

    Go to Settings -> Site Options -> General -> Product, then find Price Description and change the text to "Cost Per Person"

    Rich
    Rich Smith
    Rich Web & Tech Solutions - http://www.richsolutions.co.uk

    Comment


      #3
      Thankyou

      That did the trick!

      Comment

      Working...
      X