TABS / Product code

  • Posts: 77
  • Thank you received: 1
  • Hikaserial Subscription
10 years 11 months ago #170473

-- url of the page with the problem -- : lockharttactical.com/component/hikashop/...lic-safety-toe-boots
-- HikaShop version -- : 4.4.4
-- Joomla version -- : 4.4
-- Browser(s) name and version -- : firefox newest

I have a few small issues

1) Tabs
2) hikashop ratings
3) product codes

1)
a) I want to REMOVE the specifications tab. what code do i exactly need to delete in my show_blocks file?
b) I want to also COMBINE the "Post a comment" and "COMMENTS" tab.

2) Can I make a module to display all recent comments from ALL hikashop products? This would be a really cool feature to have on my homepage!

3) My product codes dont change when I select a variant from the drop down lists, can you tell me how to fix this exactly?

Thank you very much hikashop team!

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

  • Posts: 13201
  • Thank you received: 2322
10 years 11 months ago #170486

Hi,

1.
a) You have to edit the file "product / show_tabular" and add the part:

$hide_specs = 1;
// Just before
?>
<div id="hikashop_product_top_part" class="hikashop_product_top_part">
b) Remove:
<li id="hikashop_show_tabular_comment_li" class="hikashop_tabs_li ui-corner-top"><a onclick="displayTab('hikashop_show_tabular_comment');" href="javascript:void(0);"><?php echo JText::_('PRODUCT_COMMENT');?></a></li>
And add:
echo $layout_vote_listing;
// before
echo $layout_vote_form;

And remove:
			<div class="hikashop_tabs_content" id="hikashop_show_tabular_comment">
				<div id="hikashop_product_vote_listing" class="hikashop_product_vote_listing">
					<?php
						//Layout show the comment listing
						echo $layout_vote_listing;
					?>
				</div>
			</div>

2. This is not yet available but on our TODO list. :)

3. How do you have displayed this product code ?

The following user(s) said Thank You: samuel

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

  • Posts: 12953
  • Thank you received: 1778
10 years 11 months ago #170487

Hello,
1. a/ Using some CSS code will probably do the job : www.hikashop.com/support/documentation/1...ize-the-display.html

1. b/ & 2. To do that you'll have to use some code customization, which will require some development skills.

3. Your product code (next to your product title)is changing regarding the value of your variant dropdown, Did you use some code customization to display the "product code :" text through your product page ?

The following user(s) said Thank You: samuel

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

  • Posts: 77
  • Thank you received: 1
  • Hikaserial Subscription
10 years 11 months ago #170599

www.lockharttactical.com/component/hikas...lic-safety-toe-boots

Thanks so much! As you can see here, it looks like it worked perfectly!

You are amazing!

As far as the product code goes:

</span>
<?php if ($this->config->get('show_code')) { ?>
<span id="hikashop_product_code_main" class="hikashop_product_code_main">
<?php
echo $this->element->product_code;
?>
</span>

I think this is what i have in there?


I included a full txt attachment of the file, so that you can see it all.

If it was easier for you, then trying to explain it, if you re-upload it with the fix in it, i'll simply replace the txt i have in the editor and it should be fixed!

Im trying to get the product code to change, when i select a variant etc.

Thanks again!


How much work would it be to have a module where the NEWEST product reviews would show up on the homepage etc?

Attachments:

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

  • Posts: 77
  • Thank you received: 1
  • Hikaserial Subscription
10 years 11 months ago #170600

Could you dev. this for me?

What would the price be?

Do you guys have any nicer buttons for the product pages? I purchased the full STYLE pack from you guys, but not 100% sure what would make my page look the best.

Should I make the images bigger? thumb nails bigger too?

The CONTACT US FOR INFO button seems huge... and the ADD TO CART button isn't so big.

What would you recommend to really make the page nicer?

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

  • Posts: 13201
  • Thank you received: 2322
10 years 11 months ago #170605

Hi,

The product coed must be in a "span" or a "div" with the id "hikashop_product_code_main" because it is edited dynamically via Javascript. So thanks to add a span or div around the code

Product Code: <?php echo $this->element->product_code; ?>
And only one div with this name must be present on the page, or you will have to replace the "#" by "." in the javascript part to manage many divs.

Regarding the display, we are developer, so not really designers ;)
We can't really help you on this point, it is customization and the forum don't support that.

The following user(s) said Thank You: samuel

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

  • Posts: 77
  • Thank you received: 1
  • Hikaserial Subscription
10 years 11 months ago #170698

sorry!

i'm a little confused on how to change this " Product Code: <?php echo $this->element->product_code; ?> "

Can you please advise me on what to do?
Thanks again!

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

  • Posts: 26264
  • Thank you received: 4043
  • MODERATOR
10 years 11 months ago #170712

Hi,

As Xavier said

Regarding the display, we are developer, so not really designers ;)


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: samuel

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

  • Posts: 77
  • Thank you received: 1
  • Hikaserial Subscription
10 years 11 months ago #170841

yes sir, i understand.

I dont quite know what you mean about changing this code though to make it work properly.

" Product Code: <?php echo $this->element->product_code; ?> "

Can you please advise me on what to do?
Thanks.


What in my code file do i exactly need to do, to ensure the product codes change when a user selects a product variant?

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

  • Posts: 13201
  • Thank you received: 2322
10 years 11 months ago #170887

Hi,

In your code, you have to remove:

		<span id="hikashop_product_code_main" class="hikashop_product_code_main">
			<?php
			echo $this->element->product_code;
			?>
		</span>
And replace:
Product Code: <?php echo $this->element->product_code; ?>
By:
		<span id="hikashop_product_code_main" class="hikashop_product_code_main">
			Product Code: <?php echo $this->element->product_code; ?>
		</span>

Last edit: 10 years 11 months ago by Jerome.
The following user(s) said Thank You: samuel

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

  • Posts: 77
  • Thank you received: 1
  • Hikaserial Subscription
10 years 11 months ago #170958

Thank you for your fast reply!

Thank you for editing the code.

imgur.com/DZPfOzE

here is an image of whats happening.
Code looks fine... but still doesn't change properly.

here is a FULL code log... attached.

www.lockharttactical.com/component/hikas...lic-safety-toe-boots
link the view the exact same product

The code isn't changing yet.

Attachments:
Last edit: 10 years 11 months ago by samuel. Reason: UPDATE

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

  • Posts: 26264
  • Thank you received: 4043
  • MODERATOR
10 years 11 months ago #170961

Hi,

I fixed the Xavier code.

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: 77
  • Thank you received: 1
  • Hikaserial Subscription
10 years 11 months ago #171010

Thank you, I have updated as advised,

but still no change.

product codes are not changing when selecting variants.

Thanks

See problem here: www.lockharttactical.com/component/hikas...lic-safety-toe-boots

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

  • Posts: 84233
  • Thank you received: 13675
  • MODERATOR
10 years 11 months ago #171041

It's normal that it doesn't change since the variants code will only be added to the page if the "show product code" option is turned on in the configuration.
You would have to change the line:
if ($this->config->get('show_code') &&!empty($variant->product_code)){ ?>
of the view product/show.php to remove the check on the configuration option or turn on the option if you want that to work.

The following user(s) said Thank You: samuel

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

  • Posts: 77
  • Thank you received: 1
  • Hikaserial Subscription
10 years 11 months ago #171195

really sorry to keep wasting your time with my dumb questions..

but what code do I exactly have to modify. What to I replace, with what. etc.

Thanks!

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

  • Posts: 84233
  • Thank you received: 13675
  • MODERATOR
10 years 11 months ago #171199

Replace
if ($this->config->get('show_code') &&!empty($variant->product_code)){ ?>

with:
if (!empty($variant->product_code)){ ?>

The following user(s) said Thank You: samuel

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

  • Posts: 77
  • Thank you received: 1
  • Hikaserial Subscription
10 years 11 months ago #171312

it works!

GIANT KISS!!! HAHA

My only other related question now..

Is for product codes, can hikashop use the variant name?

Example: lockharttactical.com/recent/product/6684...fleece-storm-32-pant
for variant: COLOR: BLACK, SIZE: X-Small

the code is: KR-UA-1239181_10481_10160
Could hikashop not automatically use the variant names for the codes?

So it would look like this:
KR-UA-1239181_Black_XSmall

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

  • Posts: 26264
  • Thank you received: 4043
  • MODERATOR
10 years 11 months ago #171886

Hi,

No, the product in your cart/order is the variant so the variant product code is used.

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: 77
  • Thank you received: 1
  • Hikaserial Subscription
10 years 11 months ago #171996

so its impossible to do what i asked?

thanks

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

  • Posts: 26264
  • Thank you received: 4043
  • MODERATOR
10 years 11 months ago #172001

Hi,

Nothing is impossible, but it require time and development.

If you want to change the variant product codes, you can edit your variants and change that value.
You can also import your variants using a CSV with the product_code you want.
But the way that HikaShop generate the variant product code should follow a specific rule to be unique.

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.

Time to create page: 0.130 seconds
Powered by Kunena Forum