items in the basket

  • Posts: 172
  • Thank you received: 2
11 years 8 months ago #126815

how to make a product that is added to the cart (on the checkout page) was not a link to him?
or redirect it to another page ?


hika create mysite/component/hikashop/product/1-one page
but i need to redirect this link on product page.

Last edit: 11 years 8 months ago by rockettboost.

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

  • Posts: 26251
  • Thank you received: 4040
  • MODERATOR
11 years 7 months ago #126979

Hi,

The link " mysite/component/hikashop/product/1-one-page " is the link to the HikaShop product page for this product.
If you don't want to display it, you have to edit the view "checkout | cart" in order to change how the products are displayed in this checkout cart.

Regards,


Jerome - Obsidev.com
HikaMarket & HikaSerial developer / HikaShop core dev team.

Also helping the HikaShop support team when having some time or couldn't sleep.
By the way, do not send me private message, use the "contact us" form instead.

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

  • Posts: 172
  • Thank you received: 2
11 years 7 months ago #126985

and how to redirect the user to the page where the button "add to cart"?

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

  • Posts: 26251
  • Thank you received: 4040
  • MODERATOR
11 years 7 months ago #127135

Hi,

Can you make an understandable question please ?
Something that we can understand in order to give you an answer.

Thanks


Jerome - Obsidev.com
HikaMarket & HikaSerial developer / HikaShop core dev team.

Also helping the HikaShop support team when having some time or couldn't sleep.
By the way, do not send me private message, use the "contact us" form instead.

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

  • Posts: 172
  • Thank you received: 2
11 years 7 months ago #127136

ok , sorry )

I have a page with the product, i add the "buy button" to this page.
i need the link of the product in the basket redirects me to the page with the product, where the "buy button" is situated.
but not to the page that creates hikashop .
how can i do this

Last edit: 11 years 7 months ago by rockettboost.

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

  • Posts: 172
  • Thank you received: 2
11 years 7 months ago #127231

I add a button like this

Attachments:
Last edit: 11 years 7 months ago by rockettboost.

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

  • Posts: 172
  • Thank you received: 2
11 years 7 months ago #127317

any idea ?

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

  • Posts: 172
  • Thank you received: 2
11 years 7 months ago #127388

Jerome, I wrote lucidly?
sorry for my english i use google translate :)

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

  • Posts: 26251
  • Thank you received: 4040
  • MODERATOR
11 years 7 months ago #127444

Hi,

Please note that each time you reply to your own message, you loose your position in the queue.
So more you replied, more you have to wait until we arrived to your message.

So, you use the "product insert tag" plugin.
This plugin creates an "add to cart" button thanks to the view "product | add_to_cart_listing".

Now, I need some information :
- A screenshot of your HikaShop configuration (section: Main > Cart)
- A link to your store and more precisely : the page where there is your special "add to cart"

For your screenshot, please log-in in your backend in English. It will help use to read your configuration :)

Regards,


Jerome - Obsidev.com
HikaMarket & HikaSerial developer / HikaShop core dev team.

Also helping the HikaShop support team when having some time or couldn't sleep.
By the way, do not send me private message, use the "contact us" form instead.

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

  • Posts: 172
  • Thank you received: 2
11 years 7 months ago #127479

Hello friend !
i use localhost .

here are a few screens



this is the page with ''product insert tag''
http://localhost:8888/demo/trenings/actors



i need the link of the product in the basket redirects me to my page
http://localhost:8888/demo/trenings/actors



but not to this page
http://localhost:8888/demo/component/hikashop/product/1-actors

Attachments:
Last edit: 11 years 7 months ago by rockettboost.

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

  • Posts: 13201
  • Thank you received: 2322
11 years 7 months ago #127488

Hi,

This will require some modifications in the view "checkout / cart" via the menu Display > Views.
Edit the part where the product name is displayed to change the link, and set the desired link.

The code line is:

<?php if(@$defaultParams['link_to_product_page']){ ?><a href="<?php echo hikashop_completeLink('product&task=show&cid='.$row->product_id.'&name='.$row->alias.$url_itemid);?>" ><?php } ?>
And the code to change is:
<?php echo hikashop_completeLink('product&task=show&cid='.$row->product_id.'&name='.$row->alias.$url_itemid);?>

You can try something like:
<?php echo JUri::base().'trenings/'.$row->product_name; ?>

The following user(s) said Thank You: rockettboost

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

  • Posts: 172
  • Thank you received: 2
11 years 7 months ago #127544

hello, xavier this code doesn't work .

Last edit: 11 years 7 months ago by rockettboost.

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

  • Posts: 83933
  • Thank you received: 13588
  • MODERATOR
11 years 7 months ago #127766

Why does it not work ? Are you sure you're editing the correct file ?

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

  • Posts: 172
  • Thank you received: 2
11 years 7 months ago #127817

I replace the code



for this


and that's what happens

Attachments:
Last edit: 11 years 7 months ago by rockettboost.

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

  • Posts: 26251
  • Thank you received: 4040
  • MODERATOR
11 years 7 months ago #127893

Hi,

You misunderstood what Xavier wrote.

The code line is:

<?php if(@$defaultParams['link_to_product_page']){ ?><a href="<?php echo hikashop_completeLink('product&task=show&cid='.$row->product_id.'&name='.$row->alias.$url_itemid);?>" ><?php } ?>
And the code to change is:
<?php echo hikashop_completeLink('product&task=show&cid='.$row->product_id.'&name='.$row->alias.$url_itemid);?>
You can try something like:
<?php echo JUri::base().'trenings/'.$row->product_name; ?>

It means you have to try this code
<?php if(@$defaultParams['link_to_product_page']){ ?><a href="<?php echo JUri::base().'trenings/'.$row->product_name; ?>" ><?php } ?>

Please read carefully and if you don't understand, just tell it ; There is no problem.
Saying that "the code isn't working" is not something helpful for us, so it become more difficult to help you.

Regards,


Jerome - Obsidev.com
HikaMarket & HikaSerial developer / HikaShop core dev team.

Also helping the HikaShop support team when having some time or couldn't sleep.
By the way, do not send me private message, use the "contact us" form instead.
The following user(s) said Thank You: rockettboost

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

  • Posts: 172
  • Thank you received: 2
11 years 7 months ago #127900

Hi Jerome , i try this code . but nothing (

<?php if(@$defaultParams['link_to_product_page']){ ?><a href="<?php echo JUri::base().'trenings/'.$row->product_name; ?>" ><?php } ?>

error 404
http://localhost:8888/demo/trenings/%D0%9A%D1%83%D1%80%D1%81%D1%8B%20%D1%82%D0%B5%D0%BB%D0%B5%D0%B2%D0%B5%D0%B4%D1%83%D1%89%D0%B8%D1%85

maybe it's because I have a product name on Russian, and the alias of the page on English?



after insert your code




P.S ''thanks , you corrected me"

Last edit: 11 years 7 months ago by rockettboost.

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

  • Posts: 172
  • Thank you received: 2
11 years 7 months ago #127906

I found a reason
when the product name on the same language as the page name - it works fine .

but my " product insert tags " used not only in the "trainings" category .
i use " product insert tags " in another categories :

demo/mainpage/product1 ,
demo/contacts/product2
demo/trenings/radio/product3,
demo/lessons/audio/product4
etc.

how to implement it ?

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

  • Posts: 13201
  • Thank you received: 2322
11 years 7 months ago #128089

Hi,

You can use "$row->product_alias" instead of "$row->product_name".
To have a link to other categories, you can use the custom fields (business edition).
Create a custom field in the table product, named for example "link", and then in the product edition page (backend hikashop) set the desired link to the product, it should look like: "mainpage/product1"

Then in the previous view, use the code:

<?php if(@$defaultParams['link_to_product_page']){ ?><a href="<?php echo JUri::base().$row->link; ?>" ><?php } ?>

The following user(s) said Thank You: rockettboost

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

  • Posts: 172
  • Thank you received: 2
11 years 7 months ago #128144

product_alias - work fine !!!
thx for your help guys )

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

Time to create page: 0.153 seconds
Powered by Kunena Forum