Help - Search - Members - Calendar
Full Version: Can't Link To Cubecart From Other Sites
CubeCart Forums > CubeCart Version 3 > Installation & Upgrade Help (Version 3)
thejaffe
Hi,

(NOTE below I had to add spaces to URLS because it displayed them weird, probably doing much as what is causing me trouble!).

I have been stumped on an issue. When linking form other sites to a specific item in Cubecart, it always worked fine until i upgraded to 3.0.17.

At first it was the security issue involving the way & and & a m p; were handled...so I edited inc.inc.php as instructed to turn off the security feature. This stopped the security feature from killing the script, but yet Cubecart still:

Changes original external linked url from another site: http://www.mysite.com/index.php?act=viewProd & a m p; productId=3907

to: http://www.mysite.com/index.php?act=viewProd a m p;productId=3907 (removes/hides &)

Which gives me a "product not found" error, because I am guessing it removed/hid the & from the original url.

Now, of course the REAL store url is: http://www.mysite.com/index.php?act=viewProd & productId=3907

BUT most bulletin boards and other web forms change the url before posting it as a link from & to & (why I have no idea, but it seems like it's a spoofing/security issue).


How can I stop Cubecart from changing the incoming url; or to make it handle it corrrectly? Everything else works fine, the store displays fine, and functions work fine, but I cannot link from certain external sites to my store!

I have tried the posted fixes to inc.inc.php reg.inc.php and login.inc.php, but that did not fix this problem, unless i missed something. It's no longer stopping the script, it's simply changing the & to amp;

Thanks in advance for any help anyone can provide.
vokf
Try the SEO mod, this uses mod-rewrite, and so you'll be linking to:
http://site.co.uk/category name/product name/prod_1234.html

You'll find this free mod at cubecartforums.org or google for it.

Jason
thejaffe
QUOTE(vokf @ Nov 5 2007, 09:50 PM) *
Try the SEO mod, this uses mod-rewrite, and so you'll be linking to:
http://site.co.uk/category name/product name/prod_1234.html

You'll find this free mod at cubecartforums.org or google for it.

Jason


You know...sometimes it takes a fresh perspective. I screwed around for hours, and never once did this occur to me.

Much thanks!
This is a "lo-fi" version of our main content. To view the full version with more information, formatting and images, please click here.