Sure.
Edit catalog/controller/product/product.php. Before:
add
Then edit your template/product/product.tpl. Insert where ever you want it:
Edit catalog/controller/product/product.php. Before:
Code: Select all
$this->data['tab_description'] = $this->language->get('tab_description');
Code: Select all
$this->data['home'] = $this->url->link('common/home');
$this->data['name'] = $this->config->get('config_name');
Code: Select all
<a href="<?php echo $home; ?>"><?php echo $name; ?></a>
Running Opencart v3.0.3.9 with multi-stores and the default template from https://www.labeshops.com which has links to all my stores.
First, thank you for your help.Sure.
Edit catalog/controller/product/product.php. Before:
Code: Select all
$this->data['tab_description'] = $this->language->get('tab_description');
add
Code: Select all
$this->data['home'] = $this->url->link('common/home');
$this->data['name'] = $this->config->get('config_name');
Then edit your template/product/product.tpl. Insert where ever you want it:
Code: Select all
<a href="<?php echo $home; ?>"><?php echo $name; ?></a>
This comes up with the default store. I would like to have the sub store that the item belongs to for a multi store installation. Also be linkable to that store. Something like eBay's "visit store"
thank you again
No, it will link to which ever store your customer is on.
Not sure what else you are looking for?
If you want it to link to the substore, that is more than what I know how to do off hand.
Not sure what else you are looking for?
If you want it to link to the substore, that is more than what I know how to do off hand.
Running Opencart v3.0.3.9 with multi-stores and the default template from https://www.labeshops.com which has links to all my stores.
After spending the whole day in front of the computer
finally found the solution
well it goes like this :
Bear in mind I ran a multistore based on subdomains.
I used the location field to enter the sub store web address i.e. http://subdomain.domain.com
Then in catalog-->controller-->product-->product.php
find
and under that put
this is to load the web address from the location field
after go to catalog-->view-->your theme-->template-->product-->product.tpl and find
and change it to
afterwards create a text variable in your language(s) folder
catalog-->language-->your language-->product-->product.php
and load that in catalog-->controller-->product-->product.php
find the line
and under it put
finaly in your theme stylesheet.css
catalog-->view-->your theme-->stylesheet-->stylesheet.css put at the end
and your done ... ENJOY 
p.s. now someone make it show only on default store
I am tired
p.s.2 just checked and because I use a different theme in substores than the default store it does not appear
If you use the same you have to make it not appear.


well it goes like this :
Bear in mind I ran a multistore based on subdomains.
I used the location field to enter the sub store web address i.e. http://subdomain.domain.com
Then in catalog-->controller-->product-->product.php
find
Code: Select all
$this->data['points'] = $product_info['points'];
Code: Select all
/* Lef 11.07.2014 -- load location for store link use */
$this->data['location'] = $product_info['location'];
/* end Lef 11.07.2014 */
after go to catalog-->view-->your theme-->template-->product-->product.tpl and find
Code: Select all
<span><?php echo $text_stock; ?></span> <?php echo $stock; ?></div>
Code: Select all
<span><?php echo $text_stock; ?></span> <?php echo $stock; ?><br />
<!-- Lef 11.07.2014 show store link -->
<span id="store_link"><?php echo "<a href=$location>$text_store_link</a>" ?></span></div>
catalog-->language-->your language-->product-->product.php
Code: Select all
// Lef 11.07.2014 text used for store link
$_['text_store_link'] = 'Visit Store';
find the line
Code: Select all
$this->data['text_tags'] = $this->language->get('text_tags');
Code: Select all
$this->data['text_store_link'] = $this->language->get('text_store_link');
catalog-->view-->your theme-->stylesheet-->stylesheet.css put at the end
Code: Select all
#store_link a {
font-size: 14px;
font-style: bold;
color: navy;
}

p.s. now someone make it show only on default store

p.s.2 just checked and because I use a different theme in substores than the default store it does not appear

Who is online
Users browsing this forum: Bing [Bot], Google [Bot], Semrush [Bot] and 36 guests