problem with taxes and captcha

  • Posts: 92
  • Thank you received: 0
11 years 9 months ago #90993

Hi,
First of all, thanks for last update.
I have a problem with taxes: There are in my shop several zones with taxes and other ones without; in public shop (before user register) products display without taxes and they must appear with them. Another question: in products prices display like this "121 € (100 € without taxes)" and I want to show it like "100 € (121 € with taxes)". I know I must change it in Display > views, but i don't know what i have to change.
My other problem is with plugin Captcha-Recaptcha. After update, Captcha don't display in registration form. Recently, I too updated Joomla to 2.5.9 but I don't know if problem is in Joomla or hikashop update.
thanks you very much in advance for your help and work

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

  • Posts: 26158
  • Thank you received: 4028
  • MODERATOR
11 years 9 months ago #91002

Hi,

The view is "product / listing_price".
About the Captcha, do you have the plugin installed ? (In my memory, the plugin has been updated for the J3 compatibility and maybe more)
www.hikashop.com/en/support/documentatio...-with-recaptcha.html

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: 92
  • Thank you received: 0
11 years 9 months ago #91065

Hi Jerome,
I have no problem with html and css but I have no idea of php and i'd thank you said to me what i must to change in the view "product / listing_price".
Please, you did not answer to my first question about products that display without taxes in public shop.
About the Captcha, I have installed the plugin with both private and public keys and it works ok before update (joomla 2.5.9 and hikashop 2.1.0).
as everytime, thanks for your help.

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

  • Posts: 92
  • Thank you received: 0
11 years 9 months ago #91073

hi,
More information about recaptcha: I use a login module named BT login and this is the problem with captcha, if i unpublish this module captcha display in user form, but if I publish it, just captcha caption display but not the box with image.
thanks

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

  • Posts: 82863
  • Thank you received: 13372
  • MODERATOR
11 years 9 months ago #91324

Hi,

Why not use the standard joomla login module on your website ?

If you don't see the prices with tax on the products listing/page before the checkout, then, you should make sure that the "main tax zone" that you configured in the configuration is taxable. Otherwise, until the user enters his address, the system will use that main tax zone to see if it needs to display the prices with tax and it won't since you set it to a zone where the tax is not applied.

In the listing_price view file, you will have to swap the line:
echo $this->currencyHelper->format(@$price->price_value_with_tax,$price->price_currency_id);

and the line:
echo $this->currencyHelper->format($price->price_value,$price->price_currency_id);

and change the line:
echo JText::_('PRICE_AFTER_TAX');

with:
echo ' with taxes)';

The following user(s) said Thank You: pymgym

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

  • Posts: 92
  • Thank you received: 0
11 years 9 months ago #91348

Hi,
Thanks for your help. I almost solved my problems with taxes. Only another question about this (well, two): in zones without taxes, prices display as the other zones with taxes, but both prices are the same "100 € (100 € with taxes)" and the second is, in chekout view I have to swap the same lines to display prices as in the products?.
With regard to login module is just a matter of design: I use a litle login module in the top of the page and joomla login module is too big for this position.
Always been grateful
best regards

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

  • Posts: 82863
  • Thank you received: 13372
  • MODERATOR
11 years 9 months ago #91488

Hi,

It must be a javascript conflict between the captcha and the login module. I would recommend to try with another login module.

If you want to have the same modification for the prices on the checkout, you indeed need to do the same modification for the checkout view's listing_price file.

If you don't want to display the price with taxes if the prices are the same, you can add the line:
if($price->price_value==$price->price_value_with_tax){ echo '</span>'; continue; }
after the line:
echo $this->currencyHelper->format($price->price_value,$price->price_currency_id);

The following user(s) said Thank You: pymgym

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

  • Posts: 92
  • Thank you received: 0
11 years 8 months ago #92416

Hi,
More difficult still, I added the line you said to me, but products have three diferent prices (depending on the quantity) and all are displayed in each product, and with this line only display prices but no text with quantities ("10 € un., 8 € per unit for buying at least 10, 6 € per unit for buying at least 30").
And another doubt: I have to do the same modification in checkout to display only one price in zones without taxes. Please, tell me what I have to change in both checkout view's listing_price and product view's listing_price.
Excuse for the inconveniences and thanks for your help.

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

  • Posts: 82863
  • Thank you received: 13372
  • MODERATOR
11 years 8 months ago #92684

Then instead of that you should change the code:

if($this->params->get('price_with_tax')==2){
				echo JText::_('PRICE_BEFORE_TAX');
			}
			if($this->params->get('price_with_tax')==2||!$this->params->get('price_with_tax')){
				echo $this->currencyHelper->format($price->price_value,$price->price_currency_id);
			}
			if($this->params->get('price_with_tax')==2){
				echo JText::_('PRICE_AFTER_TAX');
			}
to:
if($price->price_value!=$price->price_value_with_tax){
			if($this->params->get('price_with_tax')==2){
				echo JText::_('PRICE_BEFORE_TAX');
			}
			if($this->params->get('price_with_tax')==2||!$this->params->get('price_with_tax')){
				echo $this->currencyHelper->format($price->price_value,$price->price_currency_id);
			}
			if($this->params->get('price_with_tax')==2){
				echo JText::_('PRICE_AFTER_TAX');
			}
}

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

  • Posts: 92
  • Thank you received: 0
11 years 8 months ago #92707

i am sorry but this code does not work.
please, I send you the file for if I am doing something badly.
thanks

Attachments:

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

  • Posts: 82863
  • Thank you received: 13372
  • MODERATOR
11 years 8 months ago #92711

You didn't do the modification I proposed.

You changed the code related to price_orig_value not the one related to price_value.

The following user(s) said Thank You: pymgym

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

  • Posts: 92
  • Thank you received: 0
11 years 8 months ago #92733

thanks you for all your work. All troubles fixed
I said to you I had no idea of php and often it is hard to me to understand it.
Please, be patience with me.

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

  • Posts: 92
  • Thank you received: 0
11 years 8 months ago #92734

sorry, but one trouble not fixed:
I have a module with minicart in left column and if you are in a zone without taxes, prices don't display in minicart.
Indeed that I am sorry to be so troublesome.

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

  • Posts: 82863
  • Thank you received: 13372
  • MODERATOR
11 years 8 months ago #93010

Then, instead of the line:
if($price->price_value!=$price->price_value_with_tax){

use the line:
if($price->price_value!=$price->price_value_with_tax || isset($this->total)){

The following user(s) said Thank You: pymgym

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

  • Posts: 92
  • Thank you received: 0
11 years 8 months ago #93124

Fixed, thanks.
I hope not to disturb you any more

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

Time to create page: 0.079 seconds
Powered by Kunena Forum