Product page as external URL & content module

  • Posts: 3
  • Thank you received: 0
9 years 6 months ago #232968

-- url of the page with the problem -- : cleanindiereadssale.com/
-- HikaShop version -- : 2.6.1
-- Joomla version -- : 3.4.8
-- PHP version -- : 5.5.30

Greetings! I have two related issues with the client website I'm working on. I've done some digging through the forums and documentation, but just wanted to make sure that everything is how I want it to be.

1: Client wants to use Hikashop as an affiliate / external link catalog. I've set the hikashop setting to be catalog mode, which removes the cart buttons. However, the client wants to skip the product page completely from anywhere on the site. Basically, you click on the product picture or product name and, instead of going to the product page, it takes the viewer to the product URL elsewhere (eBay, Amazon, etc.)

From my research, this kind of behavior will require the commercial version of Hikashop and a custom field containing that external URL? What do I adjust (product listing) to make sure that it accesses the custom field? Can this be done without the commercial version and custom fields, IE linking to product's brand URL or something?

2: Related to the site: the Hikashop Content Module will show categories, but clicking on it links to a blank page. The "Categories on 1 Level" module, however, will link to a page showing the items in the proper category. The Page URL will show that: the bottom of the page is the Hikashop Content Module setup to link to categories, but clicking on the category shows a blank page.

In either case, once the customer gets to the category view, will the changes made in question #1 affect the category views of the products?

A million and one thanks for any help in these regards!

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

  • Posts: 84307
  • Thank you received: 13701
  • MODERATOR
9 years 6 months ago #233014

Hi,

1. You don't necessarily need a commercial edition.
Store the URL in the brand URL and then edit the file "listing_img_title" of the view "product" via the menu Display>Views and change the line:
$link = hikashop_contentLink('product&task=show&cid='.$this->row->product_id.'&name='.$this->row->alias.$this->itemid.$this->category_pathway,$this->row);
to :
$link = $this->row->product_url;

and that should do it.

2. In your module, there is a "menu" setting which allows you to point the links of the categories to a categories listing menu item.
So first, for the links to work, the menu that you selected there needs to be a categories listing menu item (it should be by default).
Also, that menu item needs to be configured properly to display the categories and the products. So you need to check the "products options" and the "categories options" tab of the menu item. Some settings there might be wrong, leading to the issue.
Also, if the page is completely blank (ie. nothing at all is displayed), it usually indicates a Fatal error during the processing of the page. In that case, you need to turn on the "debug mode" setting of the Joomla configuration and try again in order to get the error message.

The following user(s) said Thank You: Xyvik

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

  • Posts: 3
  • Thank you received: 0
9 years 6 months ago #233022

Thank you! The Hikashop Content Module was pointing to the hidden menu, not the other menus, and in the hidden menu the "Show Image" option was turned off. Turning that on was a step in the right direction and helped me find the issue.

Thank you again!

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

  • Posts: 3
  • Thank you received: 0
9 years 6 months ago #233140

One last question, if I may: I usually work in CSS and Joomla background, and it's been ages since I've done PHP (and google is absolutely no help in this particular regard)

Is it possible to get

$link = $this->row->product_url;

to open in a new window?

Thanks again for all the help!

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

  • Posts: 84307
  • Thank you received: 13701
  • MODERATOR
9 years 6 months ago #233142

Hi,

Sure. It's just basic HTML.
Just change the line:
<a href="<?php echo $link;?>" title="<?php echo $this->escape($this->row->product_name); ?>">

to:
<a target="_blank" href="<?php echo $link;?>" title="<?php echo $this->escape($this->row->product_name); ?>">

in the same view file.

The following user(s) said Thank You: Xyvik

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

Time to create page: 0.061 seconds
Powered by Kunena Forum