Author Topic: implode probblem  (Read 2647 times)

aashiq

  • Beginner
  • *
  • Posts: 2
implode probblem
« on: January 24, 2010, 23:25:50 pm »
i was wundering if someone can help me out to change the code so it will work in joomla virtuemart.

I'm looking for the right code to extract
product sku $product_sku and
manufacturer name $mf_name


$page = implode ('', file ("http://examplesite/index.cgi?prod_id=" .$product_sku. ";vendor=" .$mf_name. ";shopname=url;lang=UK"));
$mysite = $_SERVER['PHP_SELF'].'?link='; // request this page
$page = preg_replace("/<a href=\"(.*)\">/i", "<a href=\"$mysite\\1\">", $page);
echo $page;


Now i can't find a way to get this work.
I need product_sku and mf_name to be collected from a joomla vm site and implode this external link into my joomla vm site.

Any help?

Milbo

  • Virtuemart Projectleader
  • Administrator
  • Super Hero
  • *
  • Posts: 9912
  • VM3.2 Cached and Optimized
    • VM3 Extensions
  • VirtueMart Version: VirtueMart 3 on joomla 3
Re: implode probblem
« Reply #1 on: January 25, 2010, 16:40:04 pm »
productSku and mfName are not arrays. dont know what todo with implode with em.
I should fix your bug, please support the VirtueMart project and become a member
______________________________________
Extensions approved by the core team: http://extensions.virtuemart.net/

aashiq

  • Beginner
  • *
  • Posts: 2
Re: implode probblem
« Reply #2 on: January 25, 2010, 23:13:50 pm »
I need to create an url which includes the prudct_sku and manufacturer name.
For each product it will implode on the product flypage the content of this generated url.

do you know how to make it an array?