Announcement

Collapse
No announcement yet.

Help needed changing quantity on page

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

    Help needed changing quantity on page

    Hi all, again a question:

    In my productpage I want the quantity field replaced by a checkbox.
    I tried to change this in ACT-PRODUCTLINE by changing
    NETQUOTEVAR:PRODUCTQUANTITY
    with
    <!--NETQUOTEVAR:PRODUCTQUANTITY --><input type="CHECKBOX"
    name="Q-NETQUOTEVAR:PRODUCTREFERENCE" value="1">

    Now my catalog shows a checkbox. But nothing happens with my shopping cart. How do I make this happen??

    With the audio store we also want to have a preview of the song (30 sec song) in the catalog. On our website we have the downloads on a separate page so a link would be ok. I realy have no clue where to put the link.
    Can anybody please help me with the right answer.

    www.kindersongs.nl

    #2
    Hi Kim,

    For the first bit, with the Product Quantity, I would suggest going at it differently. This is detailed differently in the Advanced Users Guide, but this is what I did to convert my quantity box, into a check box.

    Go to design | Text | click on 'Go To', Phase:-1, ID:2173

    I changed the default value
    %s<INPUT TYPE=text NAME="%s" SIZE="4" VALUE="%d">
    to read:
    %s<INPUT TYPE=checkbox NAME="%s" SIZE="4" VALUE="1" CHECKED="checked">
    For the links to the preview tracks, take a look at the following Knowledge Base article : http://knowledge.actinic.com/acatalo...ad.html#aKB738

    Kind regards,
    Last edited by Bruce; 06-Jun-2006, 03:05 PM. Reason: Forgot about the second bit !!!
    Bruce King
    SellerDeck

    Comment


      #3
      Many thanks Bruce,

      your option works. The only change I made is UCHECKED=unchecked.
      So my checkbox is not checked until selection.
      I want to keep the checkbox selected until checkout. How can I change this?

      Kind regards,
      Kim

      Comment


        #4
        If you're seeing the checkbox appearing in the Cart then this will be very tricky to alter. It will also lead to errors if the customer add the same product more than once.

        You might be better going back to your original idea. However there was a typo (you were using Q- instead of the correct Q_). The corrected code is below
        Code:
        <!-- NETQUOTEVAR:PRODUCTQUANTITY --><input type="CHECKBOX"
        name="Q_NETQUOTEVAR:PRODUCTREFERENCE" value="1">
        Note that this will fail if you use this Template on Product Duplicates (NETQUOTEVAR:PRODUCTREFERENCE doesn't generate the correct ref for a duplicate).

        The fix to allow for Duplicates is the hideously complex kludge
        Code:
        <!-- NETQUOTEVAR:PRODUCTQUANTITY -->
        <script type="text/javascript">
        <!--
         var ref = unescape(('NETQUOTEVAR:PRODUCTANCHOR'.substring(1)).replace(/_/g,'%'));
         document.write('<input type="CHECKBOX" name="Q_' + ref + '" value="1">');
        //-->
        </script>
        Norman - www.drillpine.biz
        Edinburgh, U K / Bitez, Turkey

        Comment

        Working...
        X