Announcement

Collapse
No announcement yet.

Hiding the Quantity in the shopping cart

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

    Hiding the Quantity in the shopping cart

    Most of my products (flowers) are purcased as single items.

    I am currently using componets as labels for extra detail in the shopping cart eg. item reference and description.

    The item price is selected from a drop down list.

    Using this method I get a rather confusing shopping cart screen as the quantity is set to 1 for each component line

    EG. ( ___ = spaces)

    DESCRIPTION ____________QTY _____PRICE _____ COST
    Rose Bouquet_____________1
    Ref: A01 ________________1
    Description: A Rose BQ _____1 ______ £25 ______ £25

    The Ref: and Description are useful for my staff when downloading the order and also allows the customer a more detailed invoice.

    I could live with the quantity column never having a vaule for these default components.

    Are there any simple work arounds?

    #2
    There is a fix for this that involves editing the Perl within the file called 'ActinicOrder.pm' within your Site1 folder.

    Open this file in Notepad and search for the phrase:

    'Check components in this order line'

    You should come across the following code:

    #
    # Check components in this order line
    #
    foreach $pComponent (@aComponentsIncluded)
    {
    $ProdTable .= ProductLineHTML($pComponent->{'REFERENCE'},
    $pComponent->{'NAME'} . $pComponent->{'DDLINK'},
    $pComponent->{'QUANTITY'},
    $sProductLineHTML);
    }

    Change this to read:

    #
    # Check components in this order line
    #
    foreach $pComponent (@aComponentsIncluded)
    {
    $ProdTable .= ProductLineHTML($pComponent->{'REFERENCE'},
    $pComponent->{'NAME'} . $pComponent->{'DDLINK'},
    $pComponent->{' '},
    $sProductLineHTML); # QUANTITY
    }

    Note that this forum strips out all the tabs at the beginning of these lines so the actual appearance might look different in the actual file. Actinic is not able to provide any detailed support for script changes made. If you find that there is a problem, an original copy of the script can be found within the 'Original' folder in your installation. Copy this into your site folder.

    Comment

    Working...
    X