2

I am developing a site in which user can recharge his prepaid card. So Card will have a handling charge (in magento terms product price) and the amount to be added to his card (This will be the custom field).

On product view page I show the text box to fill the recharge amount. So once he move to add to cart, handling fee and recharge amount to be carried to cart. So I should add a custom field into cart process.

I am referring this blog:

I have below question and can not find answer. Can some one please help me.

  1. What are the tables involving in this process?
  2. Will it impact any problems if add a custom field in order process?
  3. Is it acceptable to add a custom field?
  4. If yes is there any guidelines to add a new field?

Thanks in advance.

1 Answer 1

3

I think there is a better approach for your case: create one product with a price of $1 and with that you can have any number to credit your card. The customer can change the amount by changing the product qty and that way you already have most of the work done without coding a single line.

Then you can add a custom field to the order itself with this answer and use it as the Card number.

6
  • assume that I am on product description page, and from here I am adding the product to my cart, will my product be added into orders table at this stage itself ?
    – Anto S
    Commented Jun 18, 2015 at 10:52
  • No. It will be added to the quote table first and then converted into an order when finished.
    – mbalparda
    Commented Jun 18, 2015 at 11:59
  • Thanks for the reply. Your first solution not fit to my requirement. I have to save one additional product attribute which will vary from order to oreder, how can I do that? any idea about that?
    – Anto S
    Commented Jun 18, 2015 at 12:26
  • You are not clear. You need a product attribute or an order attribute? An order can have multiple products.
    – mbalparda
    Commented Jun 18, 2015 at 12:27
  • I have created a card as a product, on product view user can enter any amount on a text box. Then click on add to cart. In addition to this price for a card will also be there. At this instance I have to save this amount as users choice. Am I clear now?
    – Anto S
    Commented Jun 18, 2015 at 12:31

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.