Menu Content

Support

> Forums, FAQs & Paid Support
Welcome, Guest
Username Password: Remember me

joomsef + virtuemart extension
(1 viewing) (1) Guest
Support forum for customers who have purchased JoomSEF 3 (Joomla 1.5 compatible). Archive only, no new post can be added.

NOTE: This category has been locked. If you have purchased paid version, please, use our Support Ticket system instead. If you are using free edition, please see the Community Support section.
  • Page:
  • 1
  • 2

TOPIC: joomsef + virtuemart extension

Re:joomsef + virtuemart extension 15 years, 6 months ago #6602

  • Ops
yes

I have solved a problem as follows:

Has added in a code of shop a line cleaning a variable "pop=0":
$previous_product_url=str_replace ('pop=0', '', $previous_product_url);

The variable was gone, all works
The topic has been locked.

Re:joomsef + virtuemart extension 15 years, 6 months ago #6603

Hi
Can u please indicate me in wich file did u add this?
and which line ?
i will really appreciate it
thank you
adi nesher
The topic has been locked.

Re:joomsef + virtuemart extension 15 years, 6 months ago #6604

  • Ops
In files:

components->com_virtuemart->themes->default->templates->product_details->garden_flypage.tpl.php
components->com_virtuemart->themes->default->templates->product_details->flypage-ask.tpl.php
components->com_virtuemart->themes->default->templates->product_details->flypage.tpl.php

Or if you use a shop template, in template files, for example:

components->com_virtuemart->themes->ja-zeolite->templates->product_details->garden_flypage.tpl.php
components->com_virtuemart->themes->ja-zeolite->templates->product_details->flypage-ask.tpl.php
components->com_virtuemart->themes->ja-zeolite->templates->product_details->flypage.tpl.php

(template - ja-zeolite)

To add in a code:
// 	< Previous	|	Next >
if( $this->get_cfg( 'product_navigation', 1 )) {
if( !empty( $previous_product )) {
echo '<a class="previous_page"
 
href="'
.$previous_product_url.'">'.shopMakeHtmlSafe($previous_product['product_name']).'</a>';
}
if( !empty( $next_product )) {
echo '<a class="next_page"
 
href="'
.$next_product_url.'">'.shopMakeHtmlSafe($next_product['product_name']).'</a>';
}
}


line:
$previous_product_url=str_replace ('?pop=0', '', $previous_product_url);
$next_product_url=str_replace ('?pop=0', '', $next_product_url);

It will turn out so:
// 	< Previous	|	Next >
$previous_product_url=str_replace ('?pop=0', '', $previous_product_url);
$next_product_url=str_replace ('?pop=0', '', $next_product_url);
if( $this->get_cfg( 'product_navigation', 1 )) {
if( !empty( $previous_product )) {
echo '<a class="previous_page"
 
href="'
.$previous_product_url.'">'.shopMakeHtmlSafe($previous_product['product_name']).'</a>';
}
if( !empty( $next_product )) {
echo '<a class="next_page"
 
href="'
.$next_product_url.'">'.shopMakeHtmlSafe($next_product['product_name']).'</a>';
}
}


The variable "pop=0" will be removed from URL

P.S. Forgive for my English - I use the machine translator:)
Last Edit: 15 years, 6 months ago by .
The topic has been locked.

Re:joomsef + virtuemart extension 15 years, 6 months ago #6605

  • Ops
Ops wrote:
In files:
/components/com_virtuemart/themes/default/templates/product_details/garden_flypage.tpl.php
/components/com_virtuemart/themes/default/templates/product_details/flypage-ask.tpl.php
/components/com_virtuemart/themes/default/templates/product_details/flypage.tpl.php
Or if you use a shop template, in template files, for example:
componentscom_virtuemartthemesja-zeolitetemplatesproduct_detailsgarden_flypage.tpl.php
componentscom_virtuemartthemesja-zeolitetemplatesproduct_detailsflypage-ask.tpl.php
componentscom_virtuemartthemesja-zeolitetemplatesproduct_detailsflypage.tpl.php

(template - ja-zeolite)

To add in a code:
// 	< Previous	|	Next >
if( $this->get_cfg( 'product_navigation', 1 )) {
if( !empty( $previous_product )) {
echo '<a class="previous_page"
 
href="'
.$previous_product_url.'">'.shopMakeHtmlSafe($previous_product['product_name']).'</a>';
}
if( !empty( $next_product )) {
echo '<a class="next_page"
 
href="'
.$next_product_url.'">'.shopMakeHtmlSafe($next_product['product_name']).'</a>';
}
}


line:
$previous_product_url=str_replace ('?pop=0', '', $previous_product_url);
$next_product_url=str_replace ('?pop=0', '', $next_product_url);

It will turn out so:
// 	< Previous	|	Next >
$previous_product_url=str_replace ('?pop=0', '', $previous_product_url);
$next_product_url=str_replace ('?pop=0', '', $next_product_url);
if( $this->get_cfg( 'product_navigation', 1 )) {
if( !empty( $previous_product )) {
echo '<a class="previous_page"
 
href="'
.$previous_product_url.'">'.shopMakeHtmlSafe($previous_product['product_name']).'</a>';
}
if( !empty( $next_product )) {
echo '<a class="next_page"
 
href="'
.$next_product_url.'">'.shopMakeHtmlSafe($next_product['product_name']).'</a>';
}
}


The variable "pop=0" will be removed from URL

P.S. Forgive for my English - I use the machine translator:)
The topic has been locked.

Re:joomsef + virtuemart extension 15 years, 6 months ago #6644

Hi, I've had this same problem with the pop=0 getting added to the end pf product urls when you move backwards and forwards to the next product from the links in the product page. This code change detailed on this thread has resolved this for me but i still have another issue which is detailed in this thread below and i'm wondering if it is somehow related or can be fixed in a similar way? cat=0 or cat= is appearing in many of the main page urls when some people browse them yet i dont get them appearing myself. These catid= bits are creating duplicate urls which i want to remove as i dont want it impacting with Google search results etc

www.topfurniture.co.uk/oak-dining-table.html ?catid=0

forum.joomla.org/viewtopic.php?f=544&t=401061
Last Edit: 15 years, 5 months ago by topfurniture.
The topic has been locked.

Re:joomsef + virtuemart extension 14 years, 3 months ago #13653

Thank you it is working for me :-)
The topic has been locked.
  • Page:
  • 1
  • 2
User Login Empty