os commerce edits and addons

os commerce edits and addons

Posted by: desbrina
Posted on: 2009-08-15 00:48:00

I'm trying to get it so that new lines are converted to <br/>. I've managed to do this on the product_info.php page by changing

In reply to:

echo stripslashes($product_info['products_description']);


to

In reply to:

echo nl2br(stripslashes($product_info['products_description']));


I'm now trying to change it for the product preview when adding a new product but can't figure out where to put it. Can anyone help with this?


Also

I'm running this site for my mum. She's asked about having an option for insurance if orders are over a certain amount (in the UK) or if being sent abroad. I'm not sure the best solution for this


I've asked about both of these on the support site but no luck as of yet

Re: os commerce edits and addons

Posted by: reelrandom
Posted on: 2009-09-01 15:00:00

Hi desbrina,

While I can't necessarily help you with your PHP code, I can answer the insurance side of things. OS Commerce, like most shopping carts, should have automatic integration with major vendors like USPS, FedEx, Canada Post, etc. You should be able to set up a shipping insurance option through these vendors if you chose to integrate them. When it comes to the PHP, one thing to consider with line breaks is how they look in IE vs. other browsers. They tend to render at a 25-30px break in IE while they render as a 15-20px break in other browsers. Because of this, you may want to find a different solution than placing line breaks into your code. Instead, consider adding a line-height or margin rule where you can specify pixels and they will render properly across all browsers.

Hope this info helps! Sorry I couldn't be more helpful!

Nick @ 7up
Find eCommerce Shopping Cart Solutions at ZippyCart.com