Vendor Page

  • Posts: 121
  • Thank you received: 1
8 years 3 months ago #246503

-- url of the page with the problem -- : apicestore.com/profilo-venditore/vendor/...-del-cioccolato.html
-- HikaShop version -- : 2.6.3
-- HikaMarket version -- : 1.7.1

Hi,
on this page apicestore.com/profilo-venditore/vendor/...-del-cioccolato.html I've problem with:
- "Contact this vendor" button: nothing happened, the contact form doesn't appeared,
- and with bootstrap tabs: when I click on second tabs the first go hidden.

The template developer can't help me, how can I do for solve this?

Thanks
Matteo

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

  • Posts: 26158
  • Thank you received: 4028
  • MODERATOR
8 years 3 months ago #246518

Hi,

Please use the "vex" popup mode instead of the bootstrap one.
You currently see nothing because you're template is not fully compatible and you have some javascript issues when the popup is being displayed

page.js:5 Uncaught TypeError: jQuery(...).prettyPhoto is not a function

The tabs are not provided by the HikaMarket vendor page but it should come from one customization or by your template.
We cannot provide support on that because we do not implement it.

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: m.fontana

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

  • Posts: 121
  • Thank you received: 1
8 years 2 months ago #248639

Hi,
sorry for delay; I did what you told me and this solve every problems

Thanks
Matteo Fontana

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

  • Posts: 121
  • Thank you received: 1
8 years 2 months ago #248723

Hi,
another question; I would like to modify the address of vendor, on showcontainer_default.php I found that code:

foreach($this->extraFields['vendor'] as $fieldName => $oneExtraField) {
//...

How can I modify the code to individually call up the various parts of the address?

Thanks
Matteo Fontana

Last edit: 8 years 2 months ago by Jerome. Reason: removing code

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

  • Posts: 26158
  • Thank you received: 4028
  • MODERATOR
8 years 2 months ago #248731

Hi,

1 - Edit your vendor custom field to choose what field you want to display in the vendor page or not.

2 - Skip the fields you do not want to display in the table

foreach($this->extraFields['vendor'] as $fieldName => $oneExtraField) {
  if(in_array($fieldName, array('my_field'))
    continue;

3 - Display directly the fields you want to display in the HTML code you want to display.
echo $this->fieldsClass->show($this->extraFields['vendor']['my_field'], $this->vendor->my_field);

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: 121
  • Thank you received: 1
8 years 2 months ago #248852

Hi,
I try to modify the code like this

div class="hikamarket_vendor_fields col-md-9">
		<?php
			if(!empty($this->extraFields['vendor'])) {
		?>
			<table class="table table-striped">
			<?php
					foreach($this->extraFields['vendor'] as $fieldName => $oneExtraField) {
  if(in_array($fieldName, array('vendor_address_vat')))continue;
			?>
				<tr class="hikamarket_vendor_custom_<?php echo $oneExtraField->field_namekey;?>_line">
					<td class="key">
						<span id="hikamarket_vendor_custom_name_<?php echo $oneExtraField->field_id;?>" class="hikamarket_vendor_custom_name"><?php
							echo $this->fieldsClass->getFieldName($oneExtraField);
						?></span>
					</td>
					<td>
						<span id="hikamarket_vendor_custom_value_<?php echo $oneExtraField->field_id;?>" class="hikamarket_vendor_custom_value"><?php
							echo $this->fieldsClass->show($this->extraFields['vendor']['vendor_address_vat'], $this->vendor_address_vat);
						?></span>
					</td>
				</tr>
			<?php
				}
			?>
			</table>
		<?php
			}
		?>
		</div>

But the result is like the attachment

Whay's wrong?
Thanks

Attachments:

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

  • Posts: 26158
  • Thank you received: 4028
  • MODERATOR
8 years 2 months ago #248855

Hi,

Performing that kind of customization requires some PHP/development knowledge.

You added the content to skip the display of one field from the main loop ; but you also put the code which should be put elsewhere, inside the loop.
So the final result won't feet to your initial expectation.

Please delete your view override and make a new one.
First apply the first patch I gave you.

Then, at the very bottom of the view, put the second code I gave 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.

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

Moderators: Obsidev
Time to create page: 0.066 seconds
Powered by Kunena Forum