[Skip to main content](#vessel-content)

#  Profile for RCarey

##

[![RCarey's Avatar](https://www.hikashop.com/media/kunena/core/svg/person.svg)](/forum/user/16089-rcarey "View RCarey's Profile")

**[ Offline](/forum/user/16089-rcarey)**

- **User Type:** User

- **Register Date:** 03 Apr 2013
- **Last login:** 4 years 5 months ago
- **Time Zone:**  UTC +0:00
- **Local Time:** 11:44

- **Posts:** 8
- **Profile views:** 66
- **Thank you received:** 2

- **Gender:** Unknown
- **Birthdate:** Unknown

- Posts

#  RCarey's recent posts  (8 messages )

All Since last visit 4 Hours 8 Hours 12 Hours 24 Hours 48 Hours Week Month Year     All Since last visit 4 Hours 8 Hours 12 Hours 24 Hours 48 Hours Week Month Year

| <a id="forumtop"> </a> [  ](#forumbottom) | Subject | Replies / Views | Last Post | <a id="forumbottom"> </a> [   ](#forumtop) |
|---|---|---|---|---|
| [](/forum/25-install-update/878688-discount-code-adjusting-price-per-product-item#211974) | [discount code adjusting price per product item](/forum/25-install-update/878688-discount-code-adjusting-price-per-product-item#211974 "-- HikaShop version -- : 2.5.0 -- Joomla version -- : 3.4.3  I have a client who wants to offer a discount code that will discount each item to a fixed price, and the discount per item is determined by the client picking some round number - not at a fixed dollar amount nor fixed percentage. (In other words, they'd like the price of certain product to be reset based upon a coupon code - similar to how HikaShop allows different pricing based upon the user's group.)  Is the best solution the creation of a plugin that will adjust the rates during a trigger? I regularly write plugins, so that shoud not be too challenging for me. But I want to know if there is a better way.")        Category: [Install &amp; Update](/forum/25-install-update "Having an installation or update issue? You will probably find some help here.")     Topic started 11 years 2 months ago, by [RCarey](/forum/user/16089-rcarey "View RCarey's Profile")       [Last Post](/forum/25-install-update/878688-discount-code-adjusting-price-per-product-item#211974 "As a follow-up, I can report that I was able to get this working. I'll share briefly my approach per chance that helps someone in the future.  &#42; I set up a new usergroup called Receives Promotional Pricing.  &#42; The shop owner creates a new coupon code with the price/percentage set to zero.  &#42; My plugin's option is set to the usergroup Recieves Promotional Pricing as well as with the promo code that is to trigger the new pricing.  &#42; For each product or variant that is to receive a new price when the promo code is entered, create a second pricing item and set it's usergroup to Recieves Promotional Pricing.  Once my plugin detects the key promo code as being entered, it records this in the user's session. Then when the cart is displayed and if the user's session shows the promotion is to be applied, the plugin checks to see if each item in the cart has promotional pricing, and if it does, the plugin updates the pricing object that is stored within the order. The new per-product pricing is retained within the order as it is stored in the db.") 11 years 2 months ago     by [RCarey](/forum/user/16089-rcarey "View RCarey's Profile") | Replies:2  Views:428 | [Last Post](/forum/25-install-update/878688-discount-code-adjusting-price-per-product-item#211974 "As a follow-up, I can report that I was able to get this working. I'll share briefly my approach per chance that helps someone in the future.  &#42; I set up a new usergroup called Receives Promotional Pricing.  &#42; The shop owner creates a new coupon code with the price/percentage set to zero.  &#42; My plugin's option is set to the usergroup Recieves Promotional Pricing as well as with the promo code that is to trigger the new pricing.  &#42; For each product or variant that is to receive a new price when the promo code is entered, create a second pricing item and set it's usergroup to Recieves Promotional Pricing.  Once my plugin detects the key promo code as being entered, it records this in the user's session. Then when the cart is displayed and if the user's session shows the promotion is to be applied, the plugin checks to see if each item in the cart has promotional pricing, and if it does, the plugin updates the pricing object that is stored within the order. The new per-product pricing is retained within the order as it is stored in the db.") by [RCarey](/forum/user/16089-rcarey "View RCarey's Profile")      11 years 2 months ago |
| [](/forum/25-install-update/878688-discount-code-adjusting-price-per-product-item#211189) | [discount code adjusting price per product item](/forum/25-install-update/878688-discount-code-adjusting-price-per-product-item#211189 "-- HikaShop version -- : 2.5.0 -- Joomla version -- : 3.4.3  I have a client who wants to offer a discount code that will discount each item to a fixed price, and the discount per item is determined by the client picking some round number - not at a fixed dollar amount nor fixed percentage. (In other words, they'd like the price of certain product to be reset based upon a coupon code - similar to how HikaShop allows different pricing based upon the user's group.)  Is the best solution the creation of a plugin that will adjust the rates during a trigger? I regularly write plugins, so that shoud not be too challenging for me. But I want to know if there is a better way.")        Category: [Install &amp; Update](/forum/25-install-update "Having an installation or update issue? You will probably find some help here.")     Topic started 11 years 2 months ago, by [RCarey](/forum/user/16089-rcarey "View RCarey's Profile")       [Last Post](/forum/25-install-update/878688-discount-code-adjusting-price-per-product-item#211974 "As a follow-up, I can report that I was able to get this working. I'll share briefly my approach per chance that helps someone in the future.  &#42; I set up a new usergroup called Receives Promotional Pricing.  &#42; The shop owner creates a new coupon code with the price/percentage set to zero.  &#42; My plugin's option is set to the usergroup Recieves Promotional Pricing as well as with the promo code that is to trigger the new pricing.  &#42; For each product or variant that is to receive a new price when the promo code is entered, create a second pricing item and set it's usergroup to Recieves Promotional Pricing.  Once my plugin detects the key promo code as being entered, it records this in the user's session. Then when the cart is displayed and if the user's session shows the promotion is to be applied, the plugin checks to see if each item in the cart has promotional pricing, and if it does, the plugin updates the pricing object that is stored within the order. The new per-product pricing is retained within the order as it is stored in the db.") 11 years 2 months ago     by [RCarey](/forum/user/16089-rcarey "View RCarey's Profile") | Replies:2  Views:428 | [Last Post](/forum/25-install-update/878688-discount-code-adjusting-price-per-product-item#211974 "As a follow-up, I can report that I was able to get this working. I'll share briefly my approach per chance that helps someone in the future.  &#42; I set up a new usergroup called Receives Promotional Pricing.  &#42; The shop owner creates a new coupon code with the price/percentage set to zero.  &#42; My plugin's option is set to the usergroup Recieves Promotional Pricing as well as with the promo code that is to trigger the new pricing.  &#42; For each product or variant that is to receive a new price when the promo code is entered, create a second pricing item and set it's usergroup to Recieves Promotional Pricing.  Once my plugin detects the key promo code as being entered, it records this in the user's session. Then when the cart is displayed and if the user's session shows the promotion is to be applied, the plugin checks to see if each item in the cart has promotional pricing, and if it does, the plugin updates the pricing object that is stored within the order. The new per-product pricing is retained within the order as it is stored in the db.") by [RCarey](/forum/user/16089-rcarey "View RCarey's Profile")      11 years 2 months ago |
| [](/forum/4-how-to/67812-delivery-adding-a-per-mile-charge#182574) | [Delivery - adding a per mile charge](/forum/4-how-to/67812-delivery-adding-a-per-mile-charge#182574 "One of my clients wants an option to do a delivery of their product (fresh live fish) and they would like to have an ability charge a fee per mile from their shop to the destination based upon Google Maps calculations.  For example and I'm using nice round numbers to make this example easier: Customer orders Walleye and wants them delivered to their pond. Delivery per mile is USD $1 Google Maps (or some method of computing distance) shows 30 miles from the shop to the delivery site Shipping costs are $30 added to the order.  Is there a plugin for this computation or some integrated method to do this?  Thanks, KUrt")        Category: [How to?](/forum/4-how-to "If you didn't find the answer on our documentation neither on existing posts, please ask your question here.")     Topic started 14 years 1 month ago, by [Cyngen](/forum/user/8590-cyngen "View Cyngen's Profile")       [Last Post](/forum/4-how-to/67812-delivery-adding-a-per-mile-charge#182574 "My client opted for a simpler shipping solution. So I was not commissioned with pay to develop such a plugin.") 11 years 10 months ago     by [RCarey](/forum/user/16089-rcarey "View RCarey's Profile") | Replies:5  Views:1272 | [Last Post](/forum/4-how-to/67812-delivery-adding-a-per-mile-charge#182574 "My client opted for a simpler shipping solution. So I was not commissioned with pay to develop such a plugin.") by [RCarey](/forum/user/16089-rcarey "View RCarey's Profile")      11 years 10 months ago |
| [](/forum/4-how-to/80934-validation-check-on-custom-field#101157) | [validation check on custom field](/forum/4-how-to/80934-validation-check-on-custom-field#101157 "I am using a custom field and the donation plugin to create a gift card product where the site visitor can enter the amount to put on the card. One problem stumbled upon is that the user can enter...")        Category: [How to?](/forum/4-how-to "If you didn't find the answer on our documentation neither on existing posts, please ask your question here.")     Topic started 13 years 6 months ago, by [RCarey](/forum/user/16089-rcarey "View RCarey's Profile")       [Last Post](/forum/4-how-to/80934-validation-check-on-custom-field#101157 "Thanks.  Yesterday, I found a way to add client-side validation as control leaves the field. Briefly, here's how I did that...  In the view files, for front-end products, I edited show&#95;block&#95;custom&#95;item.php. At the top of this file I added an implementation of the javascript function that would perform the validation. This function receives a value, performs validation, and then returns a valid form of the value. For my need, the user-entered text that had to represent a dollar amount. So the code stripped out all character except digits and a decimal. I was also able to add an alert box to inform the user if the amount was less than the minimum (and then reset the text to the minimum). This function's name was forceToNumber(text).  Then, about 20 lines into the code, where the javascript function hikashopToggleFields() is inserted, I insert a call to my function just before that call to hikashopToggleFields(). Here is the completed line of code with my addition in bold:  So in short, my validation function preprocesses the value and corrects any invalid values just before the processing function is called upon this value.  I realize that because this is the only custom field I am using, a simple implementation like this works for me. Were I to be using multiple custom fields, then I would have to add a parameter that would pass the field's name (or type) and then perform the appropriate validation per field name/type.") 13 years 6 months ago     by [RCarey](/forum/user/16089-rcarey "View RCarey's Profile") | Replies:2  Views:804 | [Last Post](/forum/4-how-to/80934-validation-check-on-custom-field#101157 "Thanks.  Yesterday, I found a way to add client-side validation as control leaves the field. Briefly, here's how I did that...  In the view files, for front-end products, I edited show&#95;block&#95;custom&#95;item.php. At the top of this file I added an implementation of the javascript function that would perform the validation. This function receives a value, performs validation, and then returns a valid form of the value. For my need, the user-entered text that had to represent a dollar amount. So the code stripped out all character except digits and a decimal. I was also able to add an alert box to inform the user if the amount was less than the minimum (and then reset the text to the minimum). This function's name was forceToNumber(text).  Then, about 20 lines into the code, where the javascript function hikashopToggleFields() is inserted, I insert a call to my function just before that call to hikashopToggleFields(). Here is the completed line of code with my addition in bold:  So in short, my validation function preprocesses the value and corrects any invalid values just before the processing function is called upon this value.  I realize that because this is the only custom field I am using, a simple implementation like this works for me. Were I to be using multiple custom fields, then I would have to add a parameter that would pass the field's name (or type) and then perform the appropriate validation per field name/type.") by [RCarey](/forum/user/16089-rcarey "View RCarey's Profile")      13 years 6 months ago |
| [](/forum/4-how-to/80955-next-and-confirm-order#100922) | ["Next" and "Confirm Order"](/forum/4-how-to/80955-next-and-confirm-order#100922 "I know how to use the language string to change the wording of HIKA&#95;NEXT from &quot;Next&quot; to &quot;Confirm Order.&quot; But my real question is how can I keep the text &quot;Next&quot; for when there is a next screen and use...")        Category: [How to?](/forum/4-how-to "If you didn't find the answer on our documentation neither on existing posts, please ask your question here.")     Topic started 13 years 6 months ago, by [RCarey](/forum/user/16089-rcarey "View RCarey's Profile")       [Last Post](/forum/4-how-to/80955-next-and-confirm-order#100943 "Hi, I think that you'll probably find your answer :  Hope this will help you a little") 13 years 6 months ago     by [Mohamed Thelji](/forum/user/6861-mohamed-thelji "View Mohamed Thelji's Profile") | Replies:1  Views:504 | [Last Post](/forum/4-how-to/80955-next-and-confirm-order#100943 "Hi, I think that you'll probably find your answer :  Hope this will help you a little") by [Mohamed Thelji](/forum/user/6861-mohamed-thelji "View Mohamed Thelji's Profile")      13 years 6 months ago |
| [](/forum/4-how-to/80934-validation-check-on-custom-field#100883) | [validation check on custom field](/forum/4-how-to/80934-validation-check-on-custom-field#100883 "I am using a custom field and the donation plugin to create a gift card product where the site visitor can enter the amount to put on the card. One problem stumbled upon is that the user can enter...")        Category: [How to?](/forum/4-how-to "If you didn't find the answer on our documentation neither on existing posts, please ask your question here.")     Topic started 13 years 6 months ago, by [RCarey](/forum/user/16089-rcarey "View RCarey's Profile")       [Last Post](/forum/4-how-to/80934-validation-check-on-custom-field#101157 "Thanks.  Yesterday, I found a way to add client-side validation as control leaves the field. Briefly, here's how I did that...  In the view files, for front-end products, I edited show&#95;block&#95;custom&#95;item.php. At the top of this file I added an implementation of the javascript function that would perform the validation. This function receives a value, performs validation, and then returns a valid form of the value. For my need, the user-entered text that had to represent a dollar amount. So the code stripped out all character except digits and a decimal. I was also able to add an alert box to inform the user if the amount was less than the minimum (and then reset the text to the minimum). This function's name was forceToNumber(text).  Then, about 20 lines into the code, where the javascript function hikashopToggleFields() is inserted, I insert a call to my function just before that call to hikashopToggleFields(). Here is the completed line of code with my addition in bold:  So in short, my validation function preprocesses the value and corrects any invalid values just before the processing function is called upon this value.  I realize that because this is the only custom field I am using, a simple implementation like this works for me. Were I to be using multiple custom fields, then I would have to add a parameter that would pass the field's name (or type) and then perform the appropriate validation per field name/type.") 13 years 6 months ago     by [RCarey](/forum/user/16089-rcarey "View RCarey's Profile") | Replies:2  Views:804 | [Last Post](/forum/4-how-to/80934-validation-check-on-custom-field#101157 "Thanks.  Yesterday, I found a way to add client-side validation as control leaves the field. Briefly, here's how I did that...  In the view files, for front-end products, I edited show&#95;block&#95;custom&#95;item.php. At the top of this file I added an implementation of the javascript function that would perform the validation. This function receives a value, performs validation, and then returns a valid form of the value. For my need, the user-entered text that had to represent a dollar amount. So the code stripped out all character except digits and a decimal. I was also able to add an alert box to inform the user if the amount was less than the minimum (and then reset the text to the minimum). This function's name was forceToNumber(text).  Then, about 20 lines into the code, where the javascript function hikashopToggleFields() is inserted, I insert a call to my function just before that call to hikashopToggleFields(). Here is the completed line of code with my addition in bold:  So in short, my validation function preprocesses the value and corrects any invalid values just before the processing function is called upon this value.  I realize that because this is the only custom field I am using, a simple implementation like this works for me. Were I to be using multiple custom fields, then I would have to add a parameter that would pass the field's name (or type) and then perform the appropriate validation per field name/type.") by [RCarey](/forum/user/16089-rcarey "View RCarey's Profile")      13 years 6 months ago |
| [](/forum/4-how-to/67812-delivery-adding-a-per-mile-charge#97961) | [Delivery - adding a per mile charge](/forum/4-how-to/67812-delivery-adding-a-per-mile-charge#97961 "One of my clients wants an option to do a delivery of their product (fresh live fish) and they would like to have an ability charge a fee per mile from their shop to the destination based upon Google Maps calculations.  For example and I'm using nice round numbers to make this example easier: Customer orders Walleye and wants them delivered to their pond. Delivery per mile is USD $1 Google Maps (or some method of computing distance) shows 30 miles from the shop to the delivery site Shipping costs are $30 added to the order.  Is there a plugin for this computation or some integrated method to do this?  Thanks, KUrt")        Category: [How to?](/forum/4-how-to "If you didn't find the answer on our documentation neither on existing posts, please ask your question here.")     Topic started 14 years 1 month ago, by [Cyngen](/forum/user/8590-cyngen "View Cyngen's Profile")       [Last Post](/forum/4-how-to/67812-delivery-adding-a-per-mile-charge#182574 "My client opted for a simpler shipping solution. So I was not commissioned with pay to develop such a plugin.") 11 years 10 months ago     by [RCarey](/forum/user/16089-rcarey "View RCarey's Profile") | Replies:5  Views:1272 | [Last Post](/forum/4-how-to/67812-delivery-adding-a-per-mile-charge#182574 "My client opted for a simpler shipping solution. So I was not commissioned with pay to develop such a plugin.") by [RCarey](/forum/user/16089-rcarey "View RCarey's Profile")      11 years 10 months ago |
| [](/forum/2-general-talk-about-hikashop/79992-customer-set-price-for-gift-cards#97620) | [customer set price for gift cards](/forum/2-general-talk-about-hikashop/79992-customer-set-price-for-gift-cards#97620 "I have a restaurant client who wants to sell gift cards online. Ideally, the customer should be able to declare any dollar amount ($20, $23, $37, whatever) and then have that item set to that price...")        Category: [General Talk about HikaShop](/forum/2-general-talk-about-hikashop "Suggest your feature requests and ideas for HikaShop")     Topic started 13 years 6 months ago, by [RCarey](/forum/user/16089-rcarey "View RCarey's Profile")       [Last Post](/forum/2-general-talk-about-hikashop/79992-customer-set-price-for-gift-cards#97626 "Hi,  It is possible with the donation plugin that is installed by default in HikaShop. Here is an example with more information on how to do it:   demo.hikashop.com/index.php?option=com&#95;h...show&amp;cid=214&amp;lang=en  No programming is needed.") 13 years 6 months ago     by [nicolas](/forum/user/63-nicolas "View nicolas's Profile") | Replies:1  Views:1465 | [Last Post](/forum/2-general-talk-about-hikashop/79992-customer-set-price-for-gift-cards#97626 "Hi,  It is possible with the donation plugin that is installed by default in HikaShop. Here is an example with more information on how to do it:   demo.hikashop.com/index.php?option=com&#95;h...show&amp;cid=214&amp;lang=en  No programming is needed.") by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")      13 years 6 months ago |

[](/forum/topics/feed/mode-topics?format=feed&type=rss)

Time to create page: 0.114 seconds

[Powered by](/forum/credits) [Kunena Forum](https://www.kunena.org)

[](#top)
