Skip to main content

This site requires you to update your browser. Your browsing experience maybe affected by not having the most up to date version.

E-Commerce Modules /

Discuss about the various e-commerce modules available:
Ecommerce, SS Shop, SilverCart and SwipeStripe
Alternatively, have a look the shared mailinglist.

Moderators: martimiz, Nicolaas, Sean, frankmullenger, biapar, Willr, Ingo, Jedateach, swaiba, simon_w

Sprintf and quotation marks


Reply


5 Posts   1430 Views

Avatar
go2planC

Community Member, 19 Posts

1 February 2010 at 6:39am

Hi

I'm new to this module and not sure if i have just overlooked something or whether it's just that i'm running SS in XAMPP on a windows platform but within the supplied templates you seem to have used quotation marks within quotation marks quite a lot.

--Example--
the sprintf data within the alt atribute is creating invalid html and causing errors

//product.ss --- line 17

   <img class="productImage" src="$Image.ContentImage.URL" alt="<% sprintf(_t("IMAGE","%s image"),$Title) %>" />

--fix--

   <img class="productImage" src="$Image.ContentImage.URL" alt="<% sprintf(_t('IMAGE','%s image'),$Title) %>" />

I have had to go through and change this within every supplied template file (Not the most exciting thing i've had to do today).

To finish on a high point - this seems to be an amazing module. Good work :)

Rob

Avatar
go2planC

Community Member, 19 Posts

1 February 2010 at 9:14am

Sorry have answered my own question. Installed on test server (linux) with my hosting provider and seems to work fine.

Avatar
DsX

Community Member, 178 Posts

27 May 2010 at 7:58am

Are you saying that this problem only appears to you on your local windows machine?
I ask because I am also having this same problem, and also have a linux server that I will use to going live.

Did you use the modified templates on the Linux box, or just local?

Any other fix found for the windows server?

thanks in advance for any help you can provide.

Avatar
go2planC

Community Member, 19 Posts

28 May 2010 at 12:08am

Sorry no fix for it as yet. It is strange that it only happens on my windows machine. I also get the same problem using the dataobject manager in the admin section as well.

My suggestion is put the basics together on your windows machine - upload to to linux server and finish off the rest there. If I find anything else out i will post it here.

Avatar
DusX

Community Member, 12 Posts

28 May 2010 at 5:27am

please do.
Seams with so much SS dev going on for the windows platform that this would be a high priority issue, since it makes things rather ugly both on the front end and back end.