• Welcome to KonaKart Community Forum. Please login or sign up.
 
March 06, 2026, 09:12:04 am

Show posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.

Topics - markb

1
While I am able to insert a new product programmatically using the AdminIf.insertProduct() method, there appear to be no product images uploaded, even though I am setting them with AdminProduct.setImage(fullPathToImage). When adding products from the konakartadmin Products page, there is the "Browse" button used to select the image file, and then the "Upload" button. Does this imply there is a secondary upload step needed when adding products programmatically? I have followed the example shown in apiexample file InsertProduct.java.
2
When I create a new customer using the "New customer?  Continue" button, and submit the form, the new entry in the customers database table shows customers_type=2, and not customers_type=0 (Registered) as I expected. As a result, I am unable to see the new customer in the Customers page in the admin application, and am also unable to log in as the newly created customer.

How do I configure or use the application such that a newly created customer defaults to a registered customer (type=0) instead of a customer registered during checkout as a guest (type=2)?
3
Programming of KonaKart / Sending email to admin user
September 02, 2013, 04:02:13 pm
What is the best way to send an email to the admin user from a JSP action class? I tried:

    CustomerIf adminUser = kkAppEng.getAdminUser();
    int adminId = adminUser.getId();         
    EmailOptionsIf options = new EmailOptions();
    options.setFromAddress("admin@mystore.com");
    options.setReplyToAddress("admin@mystore.com");
   kkAppEng.getEng().sendTemplateEmailToCustomer1(adminId, "Test -- Alert from Action", options);   

but the adminUser returned is null. I have an admin user defined in the konakartadmin application. Is there a better way to do tihs?
4
I posted this question under Feature Requests, but I think it's more appropriate as a programming question. I would like to implement a page which would allow customers to upload some files. It should be a simple task involving adding a new JSP or modifying an existing one. All that is needed is a form with some basic fields, a file chooser and a button for the upload action. Is there any recommended KK API for handling a file upload outside of the Digital Download product page?

Can you advise on a good starting point for such a feature?
5
I am testing the PayPal module in my application. The module is in test mode. When I click on 'Confirm Order', I am properly redirected to the payment gateway. Finally when the www.sandbox.paypal.com/us/.... page it says:

"There's a problem with the shipping address you entered on the merchant site, and we've marked it in red. Please change the address, then continue checking out with PayPal.

Please review your shipping address

This merchant requires us to use the shipping address you entered on the merchant site, and there's a problem with that address. Please go back to the site to change the address."


The red highlighted bit is my city and state, which are correct, so I don't see the problem. In the admin app, I have:
-  'Paypal Payment Zone' = none.
- The callback URLs appear to be working.
- 'Test Mode' = true.

Any ideas why PayPal is complaining about the shipping address? Should the payment zone be set to something? If yes, then how do I set it? Thank you in advance for assisting.
6
I am new to KonaKart. I downloaded the demo, configured it for MySQL, and have it running successfully with very little effort, which is great. Next I would like to test its usage of the Paypal module. I read the documentation for adding a new payment module, even though I am not adding a new one. I made sure that in konakartadmin.properties, the konakart.modules.payment property includes Paypal. However, I do not see Paypal in the admin application nor does it appear in the checkout page's payment method dropdown list.

Have I missed something? Please help.