Announcement

Collapse
No announcement yet.

How can I change the colour of the text in the shipping row of the cart?

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

    How can I change the colour of the text in the shipping row of the cart?

    You can change the colour of the text of the 'shipping' row in the cart so it stands out by making the following change:

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

    $ACTINIC::B2B->SetXML("ShippingRow", 1);

    * you should see:

    $ACTINIC::B2B->SetXML("ShippingRow", 1);
    $hVariables{$::VARPREFIX . 'SHIPPINGCAPTION'} = $sCaption;
    $hVariables{$::VARPREFIX . 'SHIPPING'} = $Response[1];


    * to change the prompt, replace '$sCaption;' with

    "<font color='#ff0000'>" . $sCaption . "</font>";

    * to change the shipping amount, replace '$Response[1];' with:

    "<font color='#ff0000'>" . $Response[1] . "</font>";

    * save and close the file
    * update the site.

    The above will change the text in the shipping row to red (change the colour as required):





    If you have used the following article: If delivery is free then the 'shipping' cost row is removed from the cart, how can I keep it in? and want to only highlight the text if the delivery is free then do the following:

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

    $ACTINIC::B2B->SetXML("Shipping
    Row", 1);

    * on a new line directly after this add:

    if ($nShipping == 0)
    {
    $sCaption = "<font color='#ff0000'>" . $sCaption . "</font>";
    $Response[1] = "<font color='#ff0000'>" . $Response[1] . "</font>";
    }

    * Delete the line above starting with '$sCaption' if only the amount is to be highlighted.

    * Delete the line above starting with '$Response' if only the text is to be highlighted.

    * Replace the line above starting with '$Response' with the following to print 'Free' instead of 0.00:

    $Response[1] = "<font color='#ff0000'>Free</font>";


    * save and close the file
    * update the 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 your backup.
    Attached Files
Working...
X