No prices displayed until member registered

  • Posts: 206
  • Thank you received: 26
11 years 9 months ago #89403

Hi Nicolas,

As can be seen from: tradelights.co.uk/product/122-pharox-200...-20w-equivalent.html

It still shows "Free" Is there anyway that i could set this to "Please Login To View Prices"


Thanks,

Tom


I'm not an expert at this, if i post on your thread i'm doing so with the best of my knowledge and just trying to help :)

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

  • Posts: 13201
  • Thank you received: 2322
11 years 9 months ago #89450

Hi,

Are you sure that you are editing the good file in the good template ?
Could you give us a backend access ?

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

  • Posts: 206
  • Thank you received: 26
11 years 9 months ago #89456

I'm pretty sure i am, however i'm messaging you now, any other staff who want the login let me know.


I'm not an expert at this, if i post on your thread i'm doing so with the best of my knowledge and just trying to help :)

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

  • Posts: 13201
  • Thank you received: 2322
11 years 9 months ago #89462

The view "product / listing_price" wasn't edited, only the "checkout / listing_price" was.
So I added the lines:

$user = JFactory::getUser();
if($user->guest){
 echo "Thanks to log in.";
}else
Before:
if(empty($this->row->prices)){
    echo JText::_('FREE_PRICE');

And it seems to be working fine.

Last edit: 11 years 9 months ago by Xavier.

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

  • Posts: 206
  • Thank you received: 26
11 years 9 months ago #89490

Alright so now the product listing side works, however the checkout doesn't work that well now, i have an error image in the checkout (with a newly registered account)

gyazo.com/a6c8327a38fcad85f153579540242b1c.png?1360593216

Also how do i set it so that i can add more fields to the registration (in the shop page) and set it so that i have to verify their information.


I'm not an expert at this, if i post on your thread i'm doing so with the best of my knowledge and just trying to help :)
Last edit: 11 years 9 months ago by tjharvey.

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

  • Posts: 82785
  • Thank you received: 13353
  • MODERATOR
11 years 9 months ago #89645

Please remove the modifications you made in the listing_price file of the "checkout" view and you won't have that error.

You can add more fields via the menu Display>Custom fields.

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

  • Posts: 206
  • Thank you received: 26
11 years 8 months ago #91066

Well, The modifications are working so far, however there is now another problem, i've added characteristics + pricing for them too, but it displays the drop down and the one with pricing includes the add to cart button then shows £30 in the checkout.
tradelights.co.uk/Product-Categories/pro...-high-bay-light.html

Above is an example of it happening.


I'm not an expert at this, if i post on your thread i'm doing so with the best of my knowledge and just trying to help :)

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

  • Posts: 13201
  • Thank you received: 2322
11 years 8 months ago #91129

To hide the prices in the checkout, you have to edit the view "checkout / cart" and add the same check as before (the variables are maybe not the same).

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

  • Posts: 206
  • Thank you received: 26
11 years 8 months ago #91232

Anyway of not displaying the characteristics/cart in the product page (until they're registered) (cart only shows up when characteristics are added)

Also if any product details (weight height etc) are added:
tradelights.co.uk/Product-Categories/pro...led-panel-light.html

It shows up, Anyway to hide the "add to cart" and "Choose options" buttons? (until they're registered)


I'm not an expert at this, if i post on your thread i'm doing so with the best of my knowledge and just trying to help :)
Last edit: 11 years 8 months ago by tjharvey.

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

  • Posts: 82785
  • Thank you received: 13353
  • MODERATOR
11 years 8 months ago #91472

You can override the "the cart is empty" message with a translation override in order to have nothing in it:
www.hikashop.com/en/download/languages.html#modify
Then, use Advanced Module Manager to not display empty modules.

Regarding characteristics, details and the add to cart, and choose options, you will have to edit the files show_block_dimensions.php and show_block_characteristic.php and quantity.php via the menu Display->Views and add the line below at the top:

<?php $user = JFactory::getUser(); if($user->guest) return; ?>

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

  • Posts: 206
  • Thank you received: 26
11 years 7 months ago #95083

I managed to get rid of the characteristics problems (just set to registered only)


There is one slight thing bugging me:

gyazo.com/3d77ce609543c2d9fe5b666f4d06568b


tradelights.co.uk/Product-Categories/pro...-high-bay-light.html

One small square.


I'm not an expert at this, if i post on your thread i'm doing so with the best of my knowledge and just trying to help :)

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

  • Posts: 82785
  • Thank you received: 13353
  • MODERATOR
11 years 7 months ago #95097

You would have to remove the CSS:
#hikashop_product_right_part .hikashop_product_quantity_main {
border-right: 1px solid #5f909c;
border-bottom: 1px solid #5f909c;
border-left: 1px solid #a6d0da;
border-top: 1px solid #a6d0da;
padding: 5px;
display: inline-block;
}

in your blue style to not have that square.

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

  • Posts: 206
  • Thank you received: 26
11 years 7 months ago #96664

Alright, i removed the modifications yet i still get: tradelights.co.uk/Product-Categories/pro...-high-bay-light.html


I'm not an expert at this, if i post on your thread i'm doing so with the best of my knowledge and just trying to help :)

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

  • Posts: 82785
  • Thank you received: 13353
  • MODERATOR
11 years 7 months ago #96925

I can still see that CSS in your style file: tradelights.co.uk/media/com_hikashop/css/style_blue.css?v=211

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

Time to create page: 0.098 seconds
Powered by Kunena Forum