Dont clone hits in vmvendor

More
5 years 3 months ago #42938 by Mx150
Hello there,

can anyone help me to stop clone the hits when we clone a product?
Where to find the clone function in vmcomponent

I think hits must not be cloned, because often the cloned product will get a new product.
So if we clone the hits the statistic for vendors is gone.

Please help to solve.

Greetings

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

More
5 years 3 months ago #42946 by nordmograph
Hello,
Understood , I'll remove the feature right now.

- Need help? Post the URL of the related page (eventualy as confidential info), it will help solve your issue faster.
- An error, notice or warning? report the exact message including the line number
- If you get a white page , enable error reporting and / or check your server error logs.

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

More
5 years 3 months ago #42947 by nordmograph
Can you try this:
open com_vmvendor/controller.php and add this on line 466:
$virtuemart_product->hits = 0;

Hope it helps. Let me know.

- Need help? Post the URL of the related page (eventualy as confidential info), it will help solve your issue faster.
- An error, notice or warning? report the exact message including the line number
- If you get a white page , enable error reporting and / or check your server error logs.
The following user(s) said Thank You: Mx150

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

More
5 years 3 months ago #42954 by Mx150
Replied by Mx150 on topic Dont clone hits in vmvendor
Great works perfekt... Thank you

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

More
5 years 3 months ago #42962 by Mx150
Replied by Mx150 on topic Dont clone hits in vmvendor
Anotherone..
It Clones the Feature Product Status. How to disable this?

Greetings

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

More
5 years 3 months ago #42963 by nordmograph
Well , IMO, in this case the cloning should include this status.
If you don't want it, same place as for the hits, add:
$virtuemart_product->product_special = 0;
Hope it helps

- Need help? Post the URL of the related page (eventualy as confidential info), it will help solve your issue faster.
- An error, notice or warning? report the exact message including the line number
- If you get a white page , enable error reporting and / or check your server error logs.

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

Time to create page: 0.322 seconds
Powered by Kunena Forum
Disclaimer: Nordmograph is not affiliated with or endorsed by The Joomla! Project™. Any products and services provided through this site are not supported or warrantied by The Joomla! Project or Open Source Matters, Inc. Use of the Joomla!® name, symbol, logo and related trademarks is permitted under a limited license granted by Open Source Matters, Inc.