Hello
First of all
many thanks for making such a great product
very welldone.
The problem is simple
i,m using the script in an other language
and i want to change also for the featured.php displayed product
not the basic /product/ but an other word
the code below much be changed i guess
<?php foreach($featured["products"] as $product):
if ($i==$featdivide) {print "</ul></div><div class='featuredproduct'><ul>"; $i=0; } ?>
<li><a href='<?php print $product["productHREF"]; ?>' title='<?php print $product["name"]; ?>'><?php print $product["name"]; ?></a>
something with config_useRewrite?
And another rule must be added to htaccess ?
Hope you can help david
Best Regards
remco
It did the trick m8
many thanks for the quick answer
David i emailed you for another problem
Hello remco,
I have not received any email from you since your post - could you resend? The easiest way is to reply to your registration code or forum registration email. Apologies for the inconvenience,
Cheers,
David.
Hello remco,
Do you mean you want to change the URL from
/product/product-name.html
to
/somethingelse/product-name.html
...for everywhere on the site that generates those links?
The /product/ URLs are used for all products, not just featured products...
It can be done. Other non-English language users have modified it to use a different work. The main thing of course is the change in .htaccess from:
RewriteRule ^product/(.*).html$ products.php?q=$1&rewrite=1&%{QUERY_STRING} [L]
to:
RewriteRule ^somethingelse/(.*).html$ products.php?q=$1&rewrite=1&%{QUERY_STRING} [L]
But then in addition to that; everywhere in the script that creates the links to /product/ must be changed to /somethingelse/.
In index.php it is line 55, currently this:
$featured["products"][$k]["productHREF"] = "product/".tapestry_hyphenate($product["name"]).".html";
And in search.php it is line 166:
$searchresults["products"][$k]["productHREF"] = "product/".tapestry_hyphenate($product["name"]).".html";
Cheers,
David.