Product URL only shown after purchase

  • Posts: 14
  • Thank you received: 0
14 years 1 week ago #20359

I only added the spaces so that it would appear in the post. There are no spaces in my PHP code in the actual file.
I am attaching the show.php file, so you can see what the code actually looks like:

File Attachment:

File Name: show.txt
File Size:13 KB

Attachments:
Last edit: 14 years 1 week ago by snatrott.

Please Log in or Create an account to join the conversation.

  • Posts: 84046
  • Thank you received: 13621
  • MODERATOR
14 years 6 days ago #20383

Then it's good. However, looking at the code on our end, I see that the product information is not loaded at that point. So you will have to do like this instead :

if(!empty($product->product_id)){
$class = hikashop::get('class.product');
$prod = $class->get($product->product_id);
echo $prod->product_url;
}

Please Log in or Create an account to join the conversation.

  • Posts: 14
  • Thank you received: 0
14 years 6 days ago #20391

Awesome!! That worked perfectly! Thanks SO much. At some point I will have to make it so that you can view all of the downloaded products in one area instead of going to the orders screen first, but that will have to wait. :)

Please Log in or Create an account to join the conversation.

Time to create page: 0.054 seconds
Powered by Kunena Forum