Jump to content

Lisafer

New Members
  • Posts

    1
  • Joined

  • Last visited

Lisafer's Achievements

Newbie

Newbie (1/5)

0

Reputation

  1. I'm VERY new to php and it's been a wild three weeks. I'm moving my old Miva shopping cart to Opencart - I have it up and working. I still have a lot to learn but it seems to be functioning. I'm having trouble with my htaccess redirect rules. This is what I've got for now: RewriteCond %{QUERY_STRING} ^Screen=PROD&Store_Code=SI&Product_Code(.*)$ RewriteRule ^(.*)$ http://www.domain.com/catalog/ [R=301,L] RewriteCond %{QUERY_STRING} ^Screen=PROD&Product_Code=(.*)$ RewriteRule ^(.*)$ http://www.domain/catalog/ [R=301,L] RewriteCond %{QUERY_STRING} ^Screen=CTGY&Category_Code=(.*)$ RewriteRule ^(.*)$ http://www.domain.com/catalog/ [R=301,L] And that's redirecting to the front page of the shopping cart. The "old" product code is now the "model number" in the new cart. I looked in the tpl files and it looks like I want to put the identifier? varible? of <?php echo $product['model']; ?> into the rewrite rule - this will redirect all 1100 products in the old cart into the correct page in my new cart. But I don't know how to turn <?php echo $product['name']; ?> into something that will work. I also used to have dynamic links and now have static. I need a drink. Please please help. Please.
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.