News:

Support the VirtueMart project and become a member

Main Menu

[SOLVED] Clone products unpublished

Started by gba, December 01, 2015, 11:07:05 AM

Previous topic - Next topic

gba

Hi all!

I just noticed, that a cloned product has the same published status as the original product.
This seems to me not very practicable, as normally a 100% clone makes no sense in the shop - usually some modifications are made with a cloned product.
Therefore the clone function should, in my opinion, behave like i.e. cloning Joomla Modules: Being unpublished.

What do you think about that?

Kind regards,
Gerald

Jumbo!


Uke

Yes i agree, it should be unpublished by default.

(And the "product_sales" field should be set to 0 and not be copy from the original?)

gba

Quote(And the "product_sales" field should be set to 0 and not be copy from the original?)

Do you mean the field 'product_ordered'?

Milbo

There is a new hidden config, called product.published,
just use product.published=0
But is done within 5 minutes and yes I had the same idea some weeks ago.
Quote from: gba on December 01, 2015, 11:07:05 AM
that a cloned product has the same published status as the original product.
This seems to me not very practicable, as normally a 100% clone makes no sense in the shop - usually some modifications are made with a cloned product.
right
Should I fix your bug, please support the VirtueMart project and become a member
______________________________________
Extensions approved by the core team: http://extensions.virtuemart.net/

Jörgen

Hello

No he means product_sales. I have made this visible in the backend with a override of the Product view. I see that it copies the value from the product that is cloned. In my case it is easy to both correct and see the actual sales figure.

regards

Jörgen @ Kreativ Fotografi
Joomla 3.9.18
Virtuemart 3.4.x
Olympiantheme Hera (customized)
This reflects current status when viewing old post.

Milbo

Jörgen product_sales and product_ordered makes only sense together.
Should I fix your bug, please support the VirtueMart project and become a member
______________________________________
Extensions approved by the core team: http://extensions.virtuemart.net/

gba


Jörgen

#8
@ Milbo

QuoteJörgen product_sales and product_ordered makes only sense together.

Yes I know this, in my case I have all three together in the admin Product Status view and can make an educated evaluation of the sales. But so far when I have cloned a product I inherit an old sales figure. If I later decide use this data in a sql Query I will get the wrong information. Now I can correct the inherited sales and also at a glance see if this is a shelf warmer or a hot selling item. The new configuration setting does not make this totally unneccesary, seeing the sales here is imho a good feature.

Here´s my litte snippet, added to administrato/templates/isis/html/com_virtuemart/product/product_edit_status.php, approx line 50.

<!-- sales -->
<th style="text-align:right;">
<?php echo vmText::_('COM_VIRTUEMART_PRODUCT_SALES'); ?>
</th>
<td colspan="3">
<input type="text" class="inputbox" name="product_sales" value="<?php echo $this->product->product_sales?>" size="3" />
</td>
<!-- end sales -->


I have been using this override since VM 1.1.

My best regards

Jörgen @ Kreativ Fotografi
Joomla 3.9.18
Virtuemart 3.4.x
Olympiantheme Hera (customized)
This reflects current status when viewing old post.

GJC Web Design

What worries me about this post is that afaik not one poster is a native English speaker but all posts are grammatically perfect...

Oh .. if only English speakers could write like this.......  ;)
GJC Web Design
VirtueMart and Joomla Developers - php developers https://www.gjcwebdesign.com
VM4 AusPost Shipping Plugin - e-go Shipping Plugin - VM4 Postcode Shipping Plugin - Radius Shipping Plugin - VM4 NZ Post Shipping Plugin - AusPost Estimator
Samport Payment Plugin - EcomMerchant Payment Plugin - ccBill payment Plugin
VM2 Product Lock Extension - VM2 Preconfig Adresses Extension - TaxCloud USA Taxes Plugin - Virtuemart  Product Review Component
https://extensions.joomla.org/profile/profile/details/67210
Contact for any VirtueMart or Joomla development & customisation

Jörgen

Thank You GJC , I think  :)

Jörgen @ Kreativ Fotografi
Joomla 3.9.18
Virtuemart 3.4.x
Olympiantheme Hera (customized)
This reflects current status when viewing old post.

GJC Web Design

yes. it was a honest compliment to your collective word skills in a 2nd language.. ..  impressed  :)
GJC Web Design
VirtueMart and Joomla Developers - php developers https://www.gjcwebdesign.com
VM4 AusPost Shipping Plugin - e-go Shipping Plugin - VM4 Postcode Shipping Plugin - Radius Shipping Plugin - VM4 NZ Post Shipping Plugin - AusPost Estimator
Samport Payment Plugin - EcomMerchant Payment Plugin - ccBill payment Plugin
VM2 Product Lock Extension - VM2 Preconfig Adresses Extension - TaxCloud USA Taxes Plugin - Virtuemart  Product Review Component
https://extensions.joomla.org/profile/profile/details/67210
Contact for any VirtueMart or Joomla development & customisation

jenkinhill

OK, GJ, now let's deal with your poor use of punctuation and capitalisation, starting with this lesson from an old friend of mine.  http://www.dreaded-apostrophe.com
Kelvyn
Lowestoft, Suffolk, UK

Retired from forum life November 2023

Please mention your VirtueMart, Joomla and PHP versions when asking a question in this forum

GJC Web Design

he he...  I never included myself in the praise..  :P

I now pride myself on speaking and writing a sort of NW European gibberish ... having had a good grounding in a 7 house, 1 pub, 1 garage and 1 schoolroom NZ town in the  wop wops....

GJC Web Design
VirtueMart and Joomla Developers - php developers https://www.gjcwebdesign.com
VM4 AusPost Shipping Plugin - e-go Shipping Plugin - VM4 Postcode Shipping Plugin - Radius Shipping Plugin - VM4 NZ Post Shipping Plugin - AusPost Estimator
Samport Payment Plugin - EcomMerchant Payment Plugin - ccBill payment Plugin
VM2 Product Lock Extension - VM2 Preconfig Adresses Extension - TaxCloud USA Taxes Plugin - Virtuemart  Product Review Component
https://extensions.joomla.org/profile/profile/details/67210
Contact for any VirtueMart or Joomla development & customisation

jenkinhill

Kelvyn
Lowestoft, Suffolk, UK

Retired from forum life November 2023

Please mention your VirtueMart, Joomla and PHP versions when asking a question in this forum