Welcome, Guest
Username: Password: Remember me
Use this Category for your support questions about Virtuemart Template - PureMart (SKU# FLEX-00010)

TOPIC: override template

override template 9 years 5 months ago #11295

hello, i need to override the default puremart category-product page.i need the listed products to be as links to external url and not to go to the product details page when clicked.
how can this b done please?
vm 2.9.9e
joomla 2.5
thank you
The administrator has disabled public write access.

override template 9 years 5 months ago #11302

Hi,

Simply you can't do this without PHP coding hack. Which is a challenging process.It requires too much customization.

This is a 100% custom modification and unfortunately we don't provide free support or step-by-step instructions for custom coding modifications.

Probably the easiest way is using .htaccess to re-drect the original product details URL to external URL though.
For example,

to redirect this URL: yourdomain.com/product-white-test
to this external URL: anotherdomain.com/product-test2

use this .htaccess rule:
Redirect 301 /product-white-test http://anotherdomain.com/product-test2

FYI: there is a space between 1st URL and the 2nd URL. And since the 1st URL is within your domain, you need to include the yourdomain.com part

This is definitely the east way and won't require any PHP coding.

More info about Setting up a permanent 301 redirect via .htaccess read this article below:
www.inmotionhosting.com/support/website/redirects/setting-up-a-301-permanent-redirect-via-htaccess

(or use google.com to find more article about it)

Regards.
Support
Last Edit: 9 years 5 months ago by Support.
The administrator has disabled public write access.

override template 9 years 5 months ago #11309

1. is it possible to change the div and read the data from a certain column of a csv file so as to change the link?

Attachment a.jpg not found



at least could i dissable the thumb and the product title so as not to be clickable?
2. and at the same time could i make a button which would read from a certain csv column e.g link?
i understand that it is complicated in order to have the perfect project.


all i need is a patent ,just something simple no fanvy stuff.thanks
Last Edit: 9 years 5 months ago by giannis thanos.
The administrator has disabled public write access.

override template 9 years 4 months ago #11335

"is it possible to change the div and read the data from a certain columns of a CSV".

No it is not possible. How do you match the column with the product? It requires very complex hard-coding. Beside; loading the CSV file each time the page gets loaded is the worst idea. Your website loading time will be too much. Your hosting probably won't support this complex CSV rendering method though. CSV are used only for import/export things. Loading CSV should be a one-time situation (not each time somebody loads the page)

But It is possible to use a "non-used field" for product as the "external URL".
(for example: SKU # field, or maybe the "Weight" or "Dimensions" field etc..) So the product link will be replaced with that field's value.

This is definitely the other easiest method (beside the .htaccess method that i have told you previously)

But still hard coding is necessary on the category browse page to replace the link. If it will work for you; I must say; this is a 100% custom modification and unfortunately we don't provide free support or step-by-step instructions for custom coding modifications.

You may purchase premium support:
www.flexiblewebdesign.com/premium-support

and let us take care this modification for you directly on your website though.

Regards.
Support
Last Edit: 9 years 4 months ago by Support.
The administrator has disabled public write access.
Time to create page: 0.102 seconds

MaterialMart

for Virtuemart 3

Google's Material Design has finally arrived to Virtuemart

Virtumart Template - MaterialMart Virtumart Template - CleanMart Virtumart Template - CleanMart Virtumart Template - CleanMart

Fully responsive!

Buy Now   |   Live Demo