Announcement

Collapse
No announcement yet.

How do I display choices on separate lines in the cart?

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

    How do I display choices on separate lines in the cart?

    By default, if you have more than one attribute attached to a component or directly to a product then the choices display on one line in the cart, for example:





    To show the choices on separate lines you must make a change to a perl script as follows:

    * browse to your site folder and locate 'ActinicOrder.pm' (take a backup)
    * open the file with a text editor such as notepad
    * search for:

    my $separator = shift || ',';


    * change this line to:

    my $separator = shift || '<br/>';

    * close and save the file
    * update the site and the basket will now look like:





    To ensure that the the same happens in the automatic confirmation email that is sent to the customer after they place an order:

    * browse to your site folder and locate 'OrderScript.pl' (take a backup)
    * open the file with a text editor such as notepad
    * search for:

    $sName =~ s/(!!\<|\>!!)//g;

    * add the following on a new line directly above this code:

    $sName =~ s/(\<br\/>)/\r\n/g;

    * close and save the file
    * update your site.


    SellerDeck 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 or restore from your backup.
    Attached Files
Working...
X