Where are Shortcodes In EasyStore? - Question | JoomShaper
SP Page Builder 6 is Here! Learn More →

Where are Shortcodes In EasyStore?

D

digitalmaster

EasyStore 1 year ago

I'm wondering if maybe you can help me with finding some data in the php files? I just need to find where Easystore lists out the shortcodes like {order_summary} and the functions you use to pull the data into these shortcodes. I've tried a bunch of different files but none of them are the setup of that data, they are just using the shortcodes.

I also don't see the file where easystore generates it's emails for admin. There is one in there for the customer email but not admin where I can edit the subject line code.

0
13 Answers
Ofi Khan
Ofi Khan
Accepted Answer
Support Agent 1 year ago #171425

Hello digitalmaster

You can edit the layout here:

components/com_easystore/layouts/order/summary.php

But since we have yet provided any override option, you have to update the file every time you update EasyStore.

I can guide you better if you can share what customization you actually want.

Best regards

0
D
digitalmaster
Accepted Answer
1 year ago #171447

can you help me target just the product name in the subject line of the email (without all of the css code it brings along with it)? Or do you know how to create a shortcode for just the product name that I can add in the admin emails?

ultimately what I was trying to do is set up a way for people to select which location they're going to pick up something. It would then send that location. an email. email someone as long as a specific code or word was found in the subject line of the order email, that was my workaround solution however, asking people to enter that was not an efficient way and clients did not like that.

0
Ofi Khan
Ofi Khan
Accepted Answer
Support Agent 11 months ago #171598

Sorry, it is not possible to include product name. We will try to implement this in the future version.

0
D
digitalmaster
Accepted Answer
11 months ago #171685

which php code file is responsible for the generation of admin email notifications? I need to see how you define the product names in the order summaries so I can adjust it.

0
Ofi Khan
Ofi Khan
Accepted Answer
Support Agent 11 months ago #171721

You have to change the layout here:

components/com_easystore/layouts/emails/order/summary.php

0
D
digitalmaster
Accepted Answer
11 months ago #172571

When setting up the email notification for admin when a customer makes a purchase, I want to be able to add the product name/names to the email subject line. EasyStore provides a list of variables, or shortcodes, to copy and paste into the email body and subject line when setting it up, but there is no shortcode for just the product name. If I place the {order_summary} code into the subject line we get the product name but it also has all of the css code for the order summary table. I only want to target the product name. Is there a way to create your own shortcode to grab the product name and add it to the email templates? If so, which php file do we need to add that to? If not, is there another way we can target the product name or alias to show up in the email subject line?

0
Ofi Khan
Ofi Khan
Accepted Answer
Support Agent 11 months ago #172612

It is not possible. We will think of adding it on the future release.

0
D
digitalmaster
Accepted Answer
11 months ago #173039

The problem I am still having is that a ton of CSS information is showing inside the email that the client receives. Screenshot in hidden content.

0
Ofi Khan
Ofi Khan
Accepted Answer
Support Agent 11 months ago #173111

Apology for the inconvenience. Please share your administrator access here to check the issue. Use the Hidden Content box to share the credentials. Make sure that you have a full site backup before sharing.

0
D
digitalmaster
Accepted Answer
11 months ago #173133

here's the information requested.

0
Ofi Khan
Ofi Khan
Accepted Answer
Support Agent 11 months ago #173139

You had {order_summary} variable in Email Subject. I have removed this.

prnt.sc/iQbUkL2YBg0M

Please check it now.

0
D
digitalmaster
Accepted Answer
11 months ago #173178

I am still seeing this in the subject in the emails received. Also, we needed the shortcode in order for this to show a product code in the subject line so we could filter emails on the server. Ultimately, your product does not have what j2store and virtuemart has, which is more flexibilty on how it sends emails.

We currently have different locations which take the order, so when someone orders a product, that product shows up with a code we added to the subject line per location. When that code shows up in the subject, it automatically is detected on the server and an email gets sent to a specific location. This was the only way to do this due to lack of flexibility with easystore. I love the product, don't get me wrong, but this was the only way I could overcome this issue. Unless there is a way to add another shortcode that specifically pulls that product code so my server can filter the email.

0
Ofi Khan
Ofi Khan
Accepted Answer
Support Agent 11 months ago #173277

Thanks for your feedback. We will try to improve this in the future.

0