Hot answers tagged

3

This is a barebones example, but hopefully it gets you on the right track: <table> <caption>My Order History</caption> <tbody> {exp:channel:entries channel="orders" dynamic="no" author_id="CURRENT_USER"} <tr> <td>{title}</td> <td>{entry_date format="%Y-%m-%d %H:%i:%s"}</td> &...


3

I asked this question earlier, and it turns out in 2.5 the delete functionality was accidentally removed according to the answer. How to delete order?


2

The shopping Cart add-on Cartthrob can do this, and possibly the other e-commerce add-ons such as store or BrilliantRetail too (but i haven't checked). All you do on the checkout page is add a file upload field. See this docs page that shows you can do that - http://cartthrob.com/docs/tags_detail/add_to_cart_form/ Everything else you have asked to do is ...


2

This should really be added as a comment rather than an answer, but since there isn't enough space... I've looked at our scenario again; we definitely need the plugin, but this is where different build approaches can perhaps give different requirements later on. Our products run over a number of channels, so we never know which options will have been ...


2

I don't think a plugin is needed for this. You can retrieve the item options from the order itself without a plugin and I think that's maybe the better approach to avoid having to maintain an extra plugin. But maybe I am missing something. This is a somewhat overcomplicated and not really 100% finished example I am quickly pulling from work in progress. ...


2

I believe the problem here was that after allowing the user to enter a promo_code, the promo_code field was redisplayed empty. That way, when the customer submitted the final order for payment, the promo code was reset to a blank string, resulting in the discount being removed. To avoid this, either hide the promo_code field when it is set, or display a ...


2

If you have an SQL editor, like Sequel Pro, that allows you to quickly edit data in SQL tables, the group_order column in the exp_template_groups table is where the order is stored. You can see the data with: select * from exp_template_groups Fancy SQL to renumber the groups to match the ID order, or alphabetical order, also might be doable.


2

I have spoken with Vector media about this issue and it has been determined to be a bug that resulted due to changes in the date functions from EE2 to EE3. This issue should be addressed in future releases of Cartthrob. The actual cause of the difference in dates is below: /cartthrob/models/cartthrob_entries_model.php has a public function (starting LINE ...


2

The answer below is correct for every version but 2.5.0. In 2.5.1 the checkbox is on the left and you can delete entries. The checkboxes were accidentally removed in version 2.5.0.


1

Using $this->extensions->last_call in the hook turned out to be redundant.


1

One way to do it without editing Store source files is to write some javascript and/or css that manipulates the layout and then inject that into the order detail view with an add-on like CP CSS & JS or hijack.


1

I don't think there is an easy way to accomplish this natively. One thing you could try is saving a custom "status" item_option when adding to cart. Give it a value of "pending" or something similar. The downside is you'd have to type the status in manually. On the back end you could write a little add on that would replace the default order items input ...


1

This was a bug introduced in Store 2.0.5. You can download the latest version 2.0.6 that was released today to fix this issue. Full Release Notes


1

Derek hit the nail on the head - there is no way to do this automatically, so you will need to create a simple PHP extension to update the member's group in the database. If you're not sure where to start, take a look at the EE Extension Development Guide, and you want to use the store_order_complete_end hook.


1

Have a look at the store_order_complete_end extension hook. The $order array should contain the member_id of the customer, which you can then use in a query to change their member group assignment.


Only top voted, non community-wiki answers of a minimum length are eligible