News:

Support the VirtueMart project and become a member

Main Menu

redirect to another url

Started by giannisth, November 08, 2014, 01:18:50 AM

Previous topic - Next topic

giannisth

hello everyone.
i have a major issue.
i am using joomla 2.5.27 vm2.9.9e
When clicking on a product, i would like the visitor to bypass my product details page and go to another site where they will see the product details page ,there

can this be done?
thanks in advance.

jenkinhill

First move to the latest test version, currently 2.9.9.4

You will have to make template overrides for the category/product layout and find some way of inserting the product's new url.
Kelvyn
Lowestoft, Suffolk, UK

Retired from forum life November 2023

Please mention your VirtueMart, Joomla and PHP versions when asking a question in this forum

giannisth

hello, thank you for your reply.
regarding "You will have to make template overrides for the category/product layout", there a topic about this?i have searched but i haven't found.
regarding "find some way of inserting the product's new url"
i was thinking of this idea:
1. on the csv original file i created another column which i called as hyper link between the 2 columns (external hyperlink and short description).
2. so i try to call the new column as product_s_desc so as to be shown as product short description (on the category/product layout-before product details page)and at the same time being an external link .
how about this idea?
thanks

jenkinhill

Template overrides have been part of Joomla since J1.5 was first introduced. See:
http://docs.virtuemart.net/tutorials/33-templating-layouts.html
http://www.ostraining.com/blog/joomla/overrides

You could use the short desc to include a link or create a new filed & read it from the databse.
Kelvyn
Lowestoft, Suffolk, UK

Retired from forum life November 2023

Please mention your VirtueMart, Joomla and PHP versions when asking a question in this forum

giannisth

hello again,regarding
"You could use the short desc to include a link or create a new filed & read it from the databse."
i changed the idea and made the product name as a link, in the csv file.
could i make it read from the database each product as an individual with unique url?
or any other easyer way?
i have looked at this http://www.inmotionhosting.com/support/website/redirects/setting-up-a-301-permanent-redirect-via-htaccess but the
Setting up a permanent 301 redirect via .htaccess isn't much usefull.i need a different url for each product
thanks again.


[attachment cleanup by admin]

GJC Web Design

why not just add a custom field to each product with the product url


change your cat template to use the custom field as the url of the product title
GJC Web Design
VirtueMart and Joomla Developers - php developers https://www.gjcwebdesign.com
VM4 AusPost Shipping Plugin - e-go Shipping Plugin - VM4 Postcode Shipping Plugin - Radius Shipping Plugin - VM4 NZ Post Shipping Plugin - AusPost Estimator
Samport Payment Plugin - EcomMerchant Payment Plugin - ccBill payment Plugin
VM2 Product Lock Extension - VM2 Preconfig Adresses Extension - TaxCloud USA Taxes Plugin - Virtuemart  Product Review Component
https://extensions.joomla.org/profile/profile/details/67210
Contact for any VirtueMart or Joomla development & customisation

giannisth

thanks for the sudjestion but it would be preferable if i could avoid the product details page.product title or image as an external link would be just fine.
you think my previous post is a good idea?

GJC Web Design

Quotei changed the idea and made the product name as a link, in the csv file.

you must know what you mean - but how can we?
GJC Web Design
VirtueMart and Joomla Developers - php developers https://www.gjcwebdesign.com
VM4 AusPost Shipping Plugin - e-go Shipping Plugin - VM4 Postcode Shipping Plugin - Radius Shipping Plugin - VM4 NZ Post Shipping Plugin - AusPost Estimator
Samport Payment Plugin - EcomMerchant Payment Plugin - ccBill payment Plugin
VM2 Product Lock Extension - VM2 Preconfig Adresses Extension - TaxCloud USA Taxes Plugin - Virtuemart  Product Review Component
https://extensions.joomla.org/profile/profile/details/67210
Contact for any VirtueMart or Joomla development & customisation

giannisth

yes, i'm sorry.
i mean that instead of using the product short description , i think it is better if the product name is used as a link

GJC Web Design

and does it work?  wouldn't have thought so - if you can save html to the title field
if you don't change your template you will just have a link inside a link ..
GJC Web Design
VirtueMart and Joomla Developers - php developers https://www.gjcwebdesign.com
VM4 AusPost Shipping Plugin - e-go Shipping Plugin - VM4 Postcode Shipping Plugin - Radius Shipping Plugin - VM4 NZ Post Shipping Plugin - AusPost Estimator
Samport Payment Plugin - EcomMerchant Payment Plugin - ccBill payment Plugin
VM2 Product Lock Extension - VM2 Preconfig Adresses Extension - TaxCloud USA Taxes Plugin - Virtuemart  Product Review Component
https://extensions.joomla.org/profile/profile/details/67210
Contact for any VirtueMart or Joomla development & customisation

giannisth

now this is what i'm strugling about.i'm trying to make html on the csv.it's my first time and i have no idea.any help would be much appreciated.
P.S if i use this solution will i have bypassed the .php solution?
thanks again

GJC Web Design

to be honest I haven't the faintest idea what your saying... 

Quotei'm trying to make html on the csv.

what does that mean?????

and this???

Quoteif i use this solution will i have bypassed the .php solution?
GJC Web Design
VirtueMart and Joomla Developers - php developers https://www.gjcwebdesign.com
VM4 AusPost Shipping Plugin - e-go Shipping Plugin - VM4 Postcode Shipping Plugin - Radius Shipping Plugin - VM4 NZ Post Shipping Plugin - AusPost Estimator
Samport Payment Plugin - EcomMerchant Payment Plugin - ccBill payment Plugin
VM2 Product Lock Extension - VM2 Preconfig Adresses Extension - TaxCloud USA Taxes Plugin - Virtuemart  Product Review Component
https://extensions.joomla.org/profile/profile/details/67210
Contact for any VirtueMart or Joomla development & customisation

giannisth

ok, lets restart and talk about your sudjestion "why not just add a custom field to each product with the product url


change your cat template to use the custom field as the url of the product title".
1. Isn't the custom field viewed only after the visitor has already clicked on the product and then redirected to the product details page? If so i would prefer that he didn't. If not:
a. is there a way of bulk adding urls on the products (because they are hundreds).
b. how could i change my cat template to do so?
Oh God i'm such a rookie...

GJC Web Design

1. custom fields are available in the cat pages - you need to be able to code to access them

a. I assume you will use something like csvi to import them?

b. you need to code it.. if you haven't the skills then you need to pay someone to do it
GJC Web Design
VirtueMart and Joomla Developers - php developers https://www.gjcwebdesign.com
VM4 AusPost Shipping Plugin - e-go Shipping Plugin - VM4 Postcode Shipping Plugin - Radius Shipping Plugin - VM4 NZ Post Shipping Plugin - AusPost Estimator
Samport Payment Plugin - EcomMerchant Payment Plugin - ccBill payment Plugin
VM2 Product Lock Extension - VM2 Preconfig Adresses Extension - TaxCloud USA Taxes Plugin - Virtuemart  Product Review Component
https://extensions.joomla.org/profile/profile/details/67210
Contact for any VirtueMart or Joomla development & customisation

giannisth

yes i will import them via csvi.
Unfortunately i cannot afford much money for proffesional coding.
it depends.
has anyone any sudjestions about a price or for any tip?
thanks