Title: Modifications in Original Code
Last modified: August 30, 2016

---

# Modifications in Original Code

 *  Resolved [kashifau](https://wordpress.org/support/users/kashifau/)
 * (@kashifau)
 * [10 years, 8 months ago](https://wordpress.org/support/topic/modifications-in-original-code/)
 * Hi. I made few modifications in original code in Jigoshop and added an extra 
   field named cost which saved cost data for each variable product. Now I want 
   to update the Jigoshop to latest version. Will updating destroy that data?
 * [https://wordpress.org/plugins/jigoshop/](https://wordpress.org/plugins/jigoshop/)

Viewing 3 replies - 1 through 3 (of 3 total)

 *  Plugin Author [MWSGD](https://wordpress.org/support/users/mwsgd/)
 * (@mwsgd)
 * [10 years, 8 months ago](https://wordpress.org/support/topic/modifications-in-original-code/#post-6591669)
 * Unless you made the changes by using Jigoshop template files within a child theme
   then yes they will be overwritten.
 * Please provide the code here and development can check it and see if it may be
   something to implement.
 *  Thread Starter [kashifau](https://wordpress.org/support/users/kashifau/)
 * (@kashifau)
 * [10 years, 8 months ago](https://wordpress.org/support/topic/modifications-in-original-code/#post-6591683)
 * I created a new field ‘cost’ in jigoshop_product_class and added relevant code
   to make it work. But I did not add code to one place instead added one or two
   lines to few different files.
 *  Thread Starter [kashifau](https://wordpress.org/support/users/kashifau/)
 * (@kashifau)
 * [10 years, 8 months ago](https://wordpress.org/support/topic/modifications-in-original-code/#post-6591789)
 * Hi. I am now trying to implement this functionality as a plugin. The question
   which I want to ask is, I want to add an extra public member to jigoshop_product
   Base class. How can I achieve this in a plugin?

Viewing 3 replies - 1 through 3 (of 3 total)

The topic ‘Modifications in Original Code’ is closed to new replies.

 * ![](https://s.w.org/plugins/geopattern-icon/jigoshop_655549.svg)
 * [Jigoshop](https://wordpress.org/plugins/jigoshop/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/jigoshop/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/jigoshop/)
 * [Active Topics](https://wordpress.org/support/plugin/jigoshop/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/jigoshop/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/jigoshop/reviews/)

## Tags

 * [variable products](https://wordpress.org/support/topic-tag/variable-products/)

 * 3 replies
 * 2 participants
 * Last reply from: [kashifau](https://wordpress.org/support/users/kashifau/)
 * Last activity: [10 years, 8 months ago](https://wordpress.org/support/topic/modifications-in-original-code/#post-6591789)
 * Status: resolved