Show Date in product details page

  • Posts: 34
  • Thank you received: 1
11 years 6 months ago #131746

Hi, is there any option or can achieve by custom field or code modification to show "Product creation and Last Updated Date?"
Like :
Product Created Date : 02 November, 2013
Last Updated : 10 November, 2013

Thanks

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

  • Posts: 26234
  • Thank you received: 4036
  • MODERATOR
11 years 6 months ago #131798

Hi,

You can do it using a view override.
So in the product page, you can display the information that you will find in the product object.
The dates in the object are in "timestamp" format, the best is to use the hikashop_getDate() function to transform them into a human readable format.

www.hikashop.com/support/documentation/1...ize-the-display.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.
The following user(s) said Thank You: pma

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

  • Posts: 34
  • Thank you received: 1
11 years 6 months ago #131886

Hi, thanks you for your reply,
But it seems to be I can't configure correctly, would you please give me the full code? Here will be not added any published date manually in product adding page. I would like to show the creation date from db table something auto.

Another one, we are working with HikaMarket Multivendor :
When adding a product on fronend as a vendor it's not showing "Meta Data" fields/forms. I checked access level and others are OK. It's working when adding a product in backend.

Thanks

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

  • Posts: 34
  • Thank you received: 1
11 years 6 months ago #131887

Another one,
Where can i find php codes for "Add to Cart" button?
i copied this by Firebug,

<input type="submit" class="btn button hikashop_cart_input_button" name="add" value="Add to cart" onclick="var field=document.getElementById('hikashop_product_quantity_field_1');if(hikashopCheckChangeForm('item','hikashop_product_form')){ return hikashopModifyQuantity('55',field,1,'cart'); } else { return false; }">
i need just specific file name where it used, also i'm overwriting with template not using the hikashop Display-->Views

Thanks

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

  • Posts: 13201
  • Thank you received: 2322
11 years 6 months ago #132188

Hi,

The code to display the published date is:

echo 'Product Created Date : '.hikashop_getDate($this->element->product_created,'%d-%m-%Y');
echo 'Last Updated : '.hikashop_getDate($this->element->product_modified,'%d-%m-%Y');

Regarding the HikaMarket issue, I will let Jerome answer to that question.

The add to cart buttons code is in the view "product / quantity".

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

  • Posts: 26234
  • Thank you received: 4036
  • MODERATOR
11 years 6 months ago #132294

Hi,

Can you provide some screenshot of the HikaMarket ACL ?
Note : If the vendor does not have the right, the user won't have the right too even if the element is checked for the user.

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: 34
  • Thank you received: 1
11 years 6 months ago #132300

Taken from Components--> HikaMarket--> Configuration--> Main tab and Access Label this url administrator/index.php?option=com_hikamarket&ctrl=config#main_acl






On the "You Vendor" settings there all is "Checked/ Allowed"

Thanks

Attachments:
Last edit: 11 years 6 months ago by sifur. Reason: Sorry, screenshot added

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

  • Posts: 26234
  • Thank you received: 4036
  • MODERATOR
11 years 6 months ago #132301

Hi,

The default configuration yes.
And also the vendor configuration (your vendor or a vendor who has the problem for the meta-description access).

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: 34
  • Thank you received: 1
11 years 6 months ago #132302

Vendor- who are registered as a member first and then vendor. i didn't checked with main vendor yet, just working as a registered vendor.

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

  • Posts: 34
  • Thank you received: 1
11 years 6 months ago #132318

What settings should must enable for getting email notification when adding a product by vendor?
It's like, when a product is added then administrator/ or main vendor and vendor will receive an email about, product is created, unpublished, published etc.

Thanks for help

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

  • Posts: 26234
  • Thank you received: 4036
  • MODERATOR
11 years 6 months ago #132325

Hi,

In the first tab of the HikaMarket configuration, in the "email" section ; you have to publish the mail "Market: Product Creation".
It will send you an email when a vendor create a product in your store.
You can also publish the mail for the product modification.

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.069 seconds
Powered by Kunena Forum