l0gin
Forum Replies Created
-
Forum: Plugins
In reply to: [VikRentCar Car Rental Management System] Contract translation selectionChanging the language in the Administration tab itself does not change the translation of documents, but the “conditional texts” function solved the problem.
Can you tell me which files exactly are responsible for generating documents? I have a big problem on my server with generated graphics in documents. This especially concerns the red markers showing damage in the pdf file.
I know that I can define the logo and car_inspection.png rigidly in the template, but if I set the path to the graphics in the chceckin_pdf_tmpl.php template to /wp-content/plugins/vikrentcar/admin/resources/damage_mark.png rigidly, the mark is generated in the wrong place.
I use the nginix server and php 7.4 on Ubuntu. The entire plugin directory has permissions of 0775
I have curl and PHP-GD installed, but this does not solve the problem.When I tested on a shared hosting, the marks are applied correctly and there is generally no problem with graphics in the pdf file.
Forum: Plugins
In reply to: [VikRentCar Car Rental Management System] Access to plugin variablesOK, I’ve got it sorted. I have placed the below php code in the php template and now I edit the view template as before for search results.
<?php $shortcode_content = do_shortcode('[vikrentcar category_id="" orderby="price" ordertype="asc" lim="1" view="carslist" lang="*"]'); echo $shortcode_content; ?>
However, I have another question: Is it possible to set a minimum rental period if the customer chooses a specific location? I checked all the functions but I am sure that the plugin does not offer such a function.
Which plugin file is responsible for the subscription renewal form? I could try using child-theme and modify this file.
When unsubscribing, it actually works, but I would like to simplify it. I have over 20 plans on the website and it doesn’t look very clear.
Edit: The problem with cron was probably caused by the fact that I was using the .htaccess password directory (this is the test version of the installation).
However, I still don’t know how I can run individual actions at a certain time from the server level, regardless of the traffic on the site.
For example, I need to check subscription status every 10 minutes.
Can I use something like:
*/10 * * * * www-data php /var/www/html/web1/wp-cron.php > pms_review_check /dev/null 2>&1
Here I don’t know what the correct syntax of this command should look like.
Yes, that solved the problem. Now the time is displayed with the WorPress settings timezone selected. Thank you.
I found the “Use WordPress date format” function not long after starting this topic here but it doesn’t change much. The option was selected and yet the subscription time is calculated according to GTM time and not local time. This is confirmed by the entry of the record in the database. The time displayed on the front-end using the short code coincides with the time that is in the database, so I think it is not a short code error, but that “Use WordPress date format” does not work.
View post on imgur.com
- This reply was modified 1 year, 8 months ago by l0gin.